| 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 86eab7481c9113964990f5029f67194915455612..9de1f05aecc6d04af74d8093fd12da076117bd9d 100644
|
| --- a/chrome/browser/autocomplete/base_search_provider.h
|
| +++ b/chrome/browser/autocomplete/base_search_provider.h
|
| @@ -73,6 +73,9 @@ class BaseSearchProvider : public AutocompleteProvider,
|
| return field_trial_triggered_in_session_;
|
| }
|
|
|
| + // Sets this as being in the app list.
|
| + void SetInAppList();
|
| +
|
| protected:
|
| // The following keys are used to record additional information on matches.
|
|
|
| @@ -327,6 +330,7 @@ class BaseSearchProvider : public AutocompleteProvider,
|
| // |append_extra_query_params| should be set if |template_url| is the default
|
| // search engine, so the destination URL will contain any
|
| // command-line-specified query params.
|
| + // |from_app_list| should be set if the search was made from the app list.
|
| static AutocompleteMatch CreateSearchSuggestion(
|
| AutocompleteProvider* autocomplete_provider,
|
| const AutocompleteInput& input,
|
| @@ -334,7 +338,8 @@ class BaseSearchProvider : public AutocompleteProvider,
|
| const TemplateURL* template_url,
|
| int accepted_suggestion,
|
| int omnibox_start_margin,
|
| - bool append_extra_query_params);
|
| + bool append_extra_query_params,
|
| + bool from_app_list);
|
|
|
| // Parses JSON response received from the provider, stripping XSSI
|
| // protection if needed. Returns the parsed data if successful, NULL
|
| @@ -480,6 +485,9 @@ class BaseSearchProvider : public AutocompleteProvider,
|
| // causes us to auto-cancel all such requests on shutdown.
|
| SuggestionDeletionHandlers deletion_handlers_;
|
|
|
| + // True if this is in the app list. Otherwise, this is in the omnibox.
|
| + bool in_app_list_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(BaseSearchProvider);
|
| };
|
|
|
|
|