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

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

Issue 6334017: Always allow exact match non-substituting keywords. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update. Created 9 years, 11 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/keyword_provider.h
diff --git a/chrome/browser/autocomplete/keyword_provider.h b/chrome/browser/autocomplete/keyword_provider.h
index bd5cb9e851f06598f0247cd69d10590bca548202..6406fb96b3d2bca950a72d4bdc031138277975e1 100644
--- a/chrome/browser/autocomplete/keyword_provider.h
+++ b/chrome/browser/autocomplete/keyword_provider.h
@@ -109,14 +109,14 @@ class KeywordProvider : public AutocompleteProvider,
AutocompleteMatch* match);
// Determines the relevance for some input, given its type, whether the user
- // typed the complete keyword, and whether the keyword needs query text (true
- // if the keyword supports replacement and the user isn't in "prefer keyword
- // matches" mode).
+ // typed the complete keyword, and whether the user is in "prefer keyword
+ // matches" mode, and whether the keyword supports replacement.
// If |allow_exact_keyword_match| is false, the relevance for complete
- // keywords is degraded.
+ // keywords that support replacements is degraded.
static int CalculateRelevance(AutocompleteInput::Type type,
bool complete,
- bool no_query_text_needed,
+ bool support_replacement,
+ bool prefer_keyword,
bool allow_exact_keyword_match);
// Creates a fully marked-up AutocompleteMatch from the user's input.

Powered by Google App Engine
This is Rietveld 408576698