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

Unified Diff: chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc

Issue 11414303: Make Google Search autocomplete provider cursor aware. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years 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/webui/omnibox/omnibox_ui_handler.cc
diff --git a/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc b/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc
index f3a899747e41ce58216e8237d637e075624731e4..dd1a2b5339d4172b27040b752127fa576770f323 100644
--- a/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc
+++ b/chrome/browser/ui/webui/omnibox/omnibox_ui_handler.cc
@@ -151,10 +151,12 @@ void OmniboxUIHandler::StartOmniboxQuery(
// query before it starts the new one. By the way, in this call to
// Start(), we use the default/typical values for all parameters.
time_omnibox_started_ = base::Time::Now();
- controller_->Start(input_string,
- empty_string, // user's desired tld (top-level domain)
- false, // don't prevent inline autocompletion
- false, // no preferred keyword provider
- true, // allow exact keyword matches
- AutocompleteInput::ALL_MATCHES); // want all matches
+ controller_->Start(AutocompleteInput(
+ input_string,
+ string16::npos,
+ empty_string, // user's desired tld (top-level domain)
+ false, // don't prevent inline autocompletion
+ false, // no preferred keyword provider
+ true, // allow exact keyword matches
+ AutocompleteInput::ALL_MATCHES)); // want all matches
}

Powered by Google App Engine
This is Rietveld 408576698