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

Unified Diff: chrome/browser/autocomplete/autocomplete_classifier.cc

Issue 6995032: Fix a browser crash involving omnibox extension keywords. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: latest Created 9 years, 7 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/autocomplete/autocomplete_classifier.cc
diff --git a/chrome/browser/autocomplete/autocomplete_classifier.cc b/chrome/browser/autocomplete/autocomplete_classifier.cc
index 295970fe3a39e38aa5622a52fabf5e61a4867e86..f3cffd43ace65806d7e43e1c177b20fcad49d3e1 100644
--- a/chrome/browser/autocomplete/autocomplete_classifier.cc
+++ b/chrome/browser/autocomplete/autocomplete_classifier.cc
@@ -19,13 +19,14 @@ AutocompleteClassifier::~AutocompleteClassifier() {
void AutocompleteClassifier::Classify(const string16& text,
const string16& desired_tld,
+ bool prefer_keyword,
bool allow_exact_keyword_match,
AutocompleteMatch* match,
GURL* alternate_nav_url) {
DCHECK(!inside_classify_);
AutoReset<bool> reset(&inside_classify_, true);
- controller_->Start(text, desired_tld, true, false, allow_exact_keyword_match,
- AutocompleteInput::BEST_MATCH);
+ controller_->Start(text, desired_tld, true, prefer_keyword,
+ allow_exact_keyword_match, AutocompleteInput::BEST_MATCH);
DCHECK(controller_->done());
const AutocompleteResult& result = controller_->result();
if (result.empty()) {
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_classifier.h ('k') | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698