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

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: Use domain matching between search provider for HTTPS pages Created 7 years, 2 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 2ad74b4b5d13e8cb2d2615476a390047cd6262b8..2d85d95687547dea6f33ce97e987c76ffa1f09c2 100644
--- a/chrome/browser/ui/omnibox/omnibox_edit_model.cc
+++ b/chrome/browser/ui/omnibox/omnibox_edit_model.cc
@@ -259,6 +259,11 @@ AutocompleteMatch OmniboxEditModel::CurrentMatch(
}
bool OmniboxEditModel::UpdatePermanentText() {
+ SearchProvider* search_provider =
+ autocomplete_controller()->search_provider();
+ if (search_provider)
+ search_provider->set_current_page_url(delegate_->GetURL());
+
// When there's new permanent text, and the user isn't interacting with the
// omnibox, we want to revert the edit to show the new text. We could simply
// define "interacting" as "the omnibox has focus", but we still allow updates

Powered by Google App Engine
This is Rietveld 408576698