Index: chrome/browser/autocomplete/search_provider.h |
diff --git a/chrome/browser/autocomplete/search_provider.h b/chrome/browser/autocomplete/search_provider.h |
index 3f9b080a20fc503842a26d42afc77d31239dbd33..f04c7011804060d687bfba94b331efa44fb8b584 100644 |
--- a/chrome/browser/autocomplete/search_provider.h |
+++ b/chrome/browser/autocomplete/search_provider.h |
@@ -436,10 +436,13 @@ class SearchProvider : public AutocompleteProvider, |
// |time| is the time at which this query was last seen. |is_keyword| |
// indicates whether the results correspond to the keyword provider or default |
// provider. |prevent_inline_autocomplete| is true if we should not inline |
- // autocomplete this query. |
+ // autocomplete this query. |prevent_search_history_inlining| is true |
+ // if we would normally inline autocomplete this query but want to shift |
+ // the relevance curve slightly downward. |
Peter Kasting
2013/08/01 22:44:48
Nit: You might want a clearer explanation of these
Mark P
2013/08/02 00:44:36
With judicious renaming, I think I managed to rewr
|
int CalculateRelevanceForHistory(const base::Time& time, |
bool is_keyword, |
- bool prevent_inline_autocomplete) const; |
+ bool prevent_inline_autocomplete, |
+ bool prevent_search_history_inlining) const; |
// Creates an AutocompleteMatch for "Search <engine> for |query_string|" with |
// the supplied relevance. Adds this match to |map|; if such a match already |
@@ -531,9 +534,6 @@ class SearchProvider : public AutocompleteProvider, |
// they will not be inlined. |
bool prevent_search_history_inlining_; |
- // If true, no search history query suggestions will be offered. |
- bool disable_search_history_; |
- |
DISALLOW_COPY_AND_ASSIGN(SearchProvider); |
}; |