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

Unified Diff: chrome/browser/autocomplete/autocomplete_classifier.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/autocomplete/autocomplete_classifier.cc
diff --git a/chrome/browser/autocomplete/autocomplete_classifier.cc b/chrome/browser/autocomplete/autocomplete_classifier.cc
index f877f7ba97a4854f6dce62889fad28ce91ee0103..9eed12f79546eba77068572cb1339a18033def83 100644
--- a/chrome/browser/autocomplete/autocomplete_classifier.cc
+++ b/chrome/browser/autocomplete/autocomplete_classifier.cc
@@ -52,8 +52,10 @@ void AutocompleteClassifier::Classify(const string16& text,
GURL* alternate_nav_url) {
DCHECK(!inside_classify_);
base::AutoReset<bool> reset(&inside_classify_, true);
- controller_->Start(text, desired_tld, true, prefer_keyword,
- allow_exact_keyword_match, AutocompleteInput::BEST_MATCH);
+ controller_->Start(AutocompleteInput(text, string16::npos, desired_tld, true,
Peter Kasting 2012/12/05 20:49:38 Nit: For example, here I'd probably break after "A
Bart N. 2012/12/06 21:43:32 Yup. Done in all places. BTW, you realize that th
+ prefer_keyword,
+ allow_exact_keyword_match,
+ AutocompleteInput::BEST_MATCH));
DCHECK(controller_->done());
const AutocompleteResult& result = controller_->result();
if (result.empty()) {

Powered by Google App Engine
This is Rietveld 408576698