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

Unified Diff: chrome/browser/autocomplete/history_url_provider.cc

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
Index: chrome/browser/autocomplete/history_url_provider.cc
diff --git a/chrome/browser/autocomplete/history_url_provider.cc b/chrome/browser/autocomplete/history_url_provider.cc
index 54f54720b23c482b02622d7bd7780e0eef9f331f..beaa87c2a72b07e636ee779942f45b271173c7d1 100644
--- a/chrome/browser/autocomplete/history_url_provider.cc
+++ b/chrome/browser/autocomplete/history_url_provider.cc
@@ -237,7 +237,8 @@ class SearchTermsDataSnapshot : public SearchTermsData {
virtual std::string GoogleBaseURLValue() const OVERRIDE;
virtual std::string GetApplicationLocale() const OVERRIDE;
- virtual base::string16 GetRlzParameterValue() const OVERRIDE;
+ virtual base::string16 GetRlzParameterValue(
+ bool from_app_list) const OVERRIDE;
virtual std::string GetSearchClient() const OVERRIDE;
virtual std::string NTPIsThemedParam() const OVERRIDE;
@@ -255,7 +256,7 @@ SearchTermsDataSnapshot::SearchTermsDataSnapshot(
const SearchTermsData& search_terms_data)
: google_base_url_value_(search_terms_data.GoogleBaseURLValue()),
application_locale_(search_terms_data.GetApplicationLocale()),
- rlz_parameter_value_(search_terms_data.GetRlzParameterValue()),
+ rlz_parameter_value_(search_terms_data.GetRlzParameterValue(false)),
search_client_(search_terms_data.GetSearchClient()),
ntp_is_themed_param_(search_terms_data.NTPIsThemedParam()) {}
@@ -270,7 +271,8 @@ std::string SearchTermsDataSnapshot::GetApplicationLocale() const {
return application_locale_;
}
-base::string16 SearchTermsDataSnapshot::GetRlzParameterValue() const {
+base::string16 SearchTermsDataSnapshot::GetRlzParameterValue(
+ bool from_app_list) const {
return rlz_parameter_value_;
}
« no previous file with comments | « chrome/browser/autocomplete/base_search_provider.cc ('k') | chrome/browser/search_engines/search_terms_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698