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..2e26ab0635ff4b156cb8d514e32998c6b8a62206 100644 |
--- a/chrome/browser/autocomplete/base_search_provider.h |
+++ b/chrome/browser/autocomplete/base_search_provider.h |
@@ -73,6 +73,8 @@ class BaseSearchProvider : public AutocompleteProvider, |
return field_trial_triggered_in_session_; |
} |
+ void set_in_app_list() { in_app_list_ = true; } |
+ |
protected: |
// The following keys are used to record additional information on matches. |
@@ -327,6 +329,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 +337,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 +484,11 @@ class BaseSearchProvider : public AutocompleteProvider, |
// causes us to auto-cancel all such requests on shutdown. |
SuggestionDeletionHandlers deletion_handlers_; |
+ // True if this provider's results are being displayed in the app list. By |
+ // default this is false, meaning that the results will be shown in the |
+ // omnibox. |
+ bool in_app_list_; |
+ |
DISALLOW_COPY_AND_ASSIGN(BaseSearchProvider); |
}; |