Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(844)

Unified Diff: chrome/browser/autocomplete/base_search_provider.h

Issue 228013002: Use whether a query is from the app list to determine the RLZ parameter. (Closed) Base URL: http://git.chromium.org/chromium/src.git@rlz-access-ids
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/autocomplete/base_search_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | chrome/browser/autocomplete/base_search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698