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

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

Issue 23621037: Send URLs on non-zero prefix suggest requests also. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move set_current_page_url Created 7 years, 3 months 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
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.cc b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
index 0893a933ce550ddad8273a172c858ae72499119e..89cf753080cd4a2a2cb3a3fc97d9a8360a31309b 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -286,6 +286,12 @@ bool OmniboxEditModel::UpdatePermanentText() {
new_permanent_text != user_text_ + gray_text);
permanent_text_ = new_permanent_text;
+
+ SearchProvider* search_provider =
+ autocomplete_controller()->search_provider();
+ if (search_provider)
+ search_provider->set_current_page_url(delegate_->GetURL());
Peter Kasting 2013/10/08 01:10:25 Nit: Put this entire block at the very top of the
H Fung 2013/10/30 23:56:15 Done.
+
return visibly_changed_permanent_text;
}

Powered by Google App Engine
This is Rietveld 408576698