| Index: chrome/browser/autocomplete/base_search_provider.h
|
| diff --git a/chrome/browser/autocomplete/base_search_provider.h b/chrome/browser/autocomplete/base_search_provider.h
|
| index d5557f5ddb3b42db32a56eb25d3678df48883f16..c0c8716c38b3964bc6130b4bf3b769d98a1f9eed 100644
|
| --- a/chrome/browser/autocomplete/base_search_provider.h
|
| +++ b/chrome/browser/autocomplete/base_search_provider.h
|
| @@ -114,6 +114,8 @@ class BaseSearchProvider : public AutocompleteProvider,
|
| //
|
| // |input| is also necessary for various other details, like whether we should
|
| // allow inline autocompletion and what the transition type should be.
|
| + // |in_keyword_mode| helps guarantee a non-keyword suggestion does not
|
| + // appear as the default match when the user is in keyword mode.
|
| // |accepted_suggestion| is used to generate Assisted Query Stats.
|
| // |append_extra_query_params| should be set if |template_url| is the default
|
| // search engine, so the destination URL will contain any
|
| @@ -121,6 +123,7 @@ class BaseSearchProvider : public AutocompleteProvider,
|
| static AutocompleteMatch CreateSearchSuggestion(
|
| AutocompleteProvider* autocomplete_provider,
|
| const AutocompleteInput& input,
|
| + const bool in_keyword_mode,
|
| const SearchSuggestionParser::SuggestResult& suggestion,
|
| const TemplateURL* template_url,
|
| const SearchTermsData& search_terms_data,
|
| @@ -182,11 +185,14 @@ class BaseSearchProvider : public AutocompleteProvider,
|
| // |metadata| and |accepted_suggestion| are used for generating an
|
| // AutocompleteMatch.
|
| // |mark_as_deletable| indicates whether the match should be marked deletable.
|
| + // |in_keyword_mode| helps guarantee a non-keyword suggestion does not
|
| + // appear as the default match when the user is in keyword mode.
|
| // NOTE: Any result containing a deletion URL is always marked deletable.
|
| void AddMatchToMap(const SearchSuggestionParser::SuggestResult& result,
|
| const std::string& metadata,
|
| int accepted_suggestion,
|
| bool mark_as_deletable,
|
| + bool in_keyword_mode,
|
| MatchMap* map);
|
|
|
| // Parses results from the suggest server and updates the appropriate suggest
|
|
|