Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3598)

Unified Diff: chrome/browser/ui/omnibox/omnibox_edit_model.cc

Issue 58553003: Pass the AlternateNavInfoBarDelegate an AutocompleteMatch instead of a GURL. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/omnibox/omnibox_edit_model.cc
===================================================================
--- chrome/browser/ui/omnibox/omnibox_edit_model.cc (revision 232852)
+++ chrome/browser/ui/omnibox/omnibox_edit_model.cc (working copy)
@@ -644,8 +644,11 @@
const string16& user_text =
user_input_in_progress_ ? user_text_ : permanent_text_;
scoped_ptr<OmniboxNavigationObserver> observer(
- new OmniboxNavigationObserver(profile_, user_text, match,
- alternate_nav_url));
+ new OmniboxNavigationObserver(
+ profile_, user_text, match,
+ autocomplete_controller()->history_url_provider()->SuggestExactInput(
+ user_text, alternate_nav_url,
+ AutocompleteInput::HasHTTPScheme(user_text))));
// We only care about cases where there is a selection (i.e. the popup is
// open).
« no previous file with comments | « chrome/browser/ui/omnibox/alternate_nav_infobar_delegate.cc ('k') | chrome/browser/ui/omnibox/omnibox_navigation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698