Chromium Code Reviews| 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..964c83e520ee6c3d2c40ad73843d7f7017665a5b 100644 |
| --- a/chrome/browser/autocomplete/search_provider.h |
| +++ b/chrome/browser/autocomplete/search_provider.h |
| @@ -435,11 +435,15 @@ 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. |
| + // provider. |use_aggressive_method| says whether this function can use a |
| + // method that gives high scores (1200+) rather than one that gives lower |
| + // scores. When using the aggressive method, |
| + // |prevent_search_history_inlining| indicates whether the scores are |
| + // allowed to exceed 1300. |
|
Peter Kasting
2013/08/02 19:57:41
Nit: This last sentence can be read to mean the op
Mark P
2013/08/02 20:01:48
Done.
|
| int CalculateRelevanceForHistory(const base::Time& time, |
| bool is_keyword, |
| - bool prevent_inline_autocomplete) const; |
| + bool use_aggressive_method, |
| + 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 +535,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); |
| }; |