diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-30 21:14:20 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-30 21:14:20 +0000 |
commit | 161ce86fc859484708d88e68b31af9ad28abafa6 (patch) | |
tree | cadaf0c0a9f4a9354d22b7d464e8fa05368988c8 /chrome | |
parent | 3fd49f9bdbe56a9648cddc015bdb8bac02fe1a7b (diff) | |
download | chromium_src-161ce86fc859484708d88e68b31af9ad28abafa6.zip chromium_src-161ce86fc859484708d88e68b31af9ad28abafa6.tar.gz chromium_src-161ce86fc859484708d88e68b31af9ad28abafa6.tar.bz2 |
Make NTP work by correctly marking the kind of urls we type in. Patch from rohitrao@google.com. http://codereview.chromium.org/55058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12810 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/cocoa/tab_contents_controller.mm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/tab_contents_controller.mm b/chrome/browser/cocoa/tab_contents_controller.mm index da73e17..a6c1732 100644 --- a/chrome/browser/cocoa/tab_contents_controller.mm +++ b/chrome/browser/cocoa/tab_contents_controller.mm @@ -62,8 +62,12 @@ class LocationBarBridge : public LocationBar { virtual std::wstring GetInputString() const; virtual WindowOpenDisposition GetWindowOpenDisposition() const { NOTIMPLEMENTED(); return CURRENT_TAB; } + // TODO(rohitrao): Fix this to return different types once autocomplete and + // the onmibar are implemented. For now, any URL that comes from the + // LocationBar has to have been entered by the user, and thus is of type + // PageTransition::TYPED. virtual PageTransition::Type GetPageTransition() const - { NOTIMPLEMENTED(); return 0; } + { NOTIMPLEMENTED(); return PageTransition::TYPED; } virtual void AcceptInput() { NOTIMPLEMENTED(); } virtual void AcceptInputWithDisposition(WindowOpenDisposition disposition) { NOTIMPLEMENTED(); } |