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

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

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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_classifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_classifier.h
diff --git a/chrome/browser/autocomplete/autocomplete_classifier.h b/chrome/browser/autocomplete/autocomplete_classifier.h
index d09f304e9013ec25d761a313b93df92b21a3f1f2..a089cef1a126af4aa8bfc884360075dd942ced3a 100644
--- a/chrome/browser/autocomplete/autocomplete_classifier.h
+++ b/chrome/browser/autocomplete/autocomplete_classifier.h
@@ -25,6 +25,8 @@ class AutocompleteClassifier {
// Given some string |text| that the user wants to use for navigation,
// determines how it should be interpreted. |desired_tld| is the user's
// desired TLD, if any; see AutocompleteInput::desired_tld().
+ // |prefer_keyword| should be true the when keyword UI is onscreen; see
+ // comments on AutocompleteController::Start().
// |allow_exact_keyword_match| should be true when treating the string as a
// potential keyword search is valid; see
// AutocompleteInput::allow_exact_keyword_match(). |match| should be a
@@ -36,6 +38,7 @@ class AutocompleteClassifier {
// AutocompleteResult::alternate_nav_url_ in autocomplete.h.
void Classify(const string16& text,
const string16& desired_tld,
+ bool prefer_keyword,
bool allow_exact_keyword_match,
AutocompleteMatch* match,
GURL* alternate_nav_url);
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_classifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698