What happens if you type the URL in, but instead of hitting enter, press the down arrow (to select a different autocomplete suggestion)? I've done something like this in the past, and it used to be that if I selected the second suggestion (which was *not* a "Search Google for: ..." type suggestion, it would actually go to my registered URL and from that point on this became the default whenever I typed a URL with my scheme. I'm trying to remember which piece of code I traced this to.. I'll take a look and reply if I can find it.
On Wed, Jul 29, 2009 at 5:02 PM, Kruncher <[email protected]> wrote: > > When the debugger breaks inside the "SupportsScheme" function, the > factories list does not include "my-scheme". > > Perhaps I am trying to register the scheme too early? Do I need to add > this directly below where the various "chrome" schemes are registered, > or is it possible to keep it in the domain of a custom application? > > On 30 July, 00:40, Peter Kasting <[email protected]> wrote: > > On Wed, Jul 29, 2009 at 4:23 PM, Kruncher <[email protected]> wrote: > > > Those are the kinds of URL's that I have been trying, but when I hit > > > enter it reverts to: > > > > >http://www.google.co.uk/search?sourceid=chrome&ie=UTF-8&q=my-scheme:/. > .. > > > > Put my-scheme://some-url in the address bar and set a breakpoint in > > URLRequestJobManager::SupportsScheme(). Now type a letter at the end. > You > > should hit your breakpoint. Check and see if |factories_| contains your > > scheme. If not, you need to make that happen. If it does, and this > > function therefore returns true, there's some problem at the time you > > actually open the URL. > > > > PK > > > --~--~---------~--~----~------------~-------~--~----~ Chromium Developers mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-dev -~----------~----~----~----~------~----~------~--~---
