summaryrefslogtreecommitdiff
path: root/chromium/components/search_engines/template_url.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-01-20 13:40:20 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-01-22 12:41:23 +0000
commit7961cea6d1041e3e454dae6a1da660b453efd238 (patch)
treec0eeb4a9ff9ba32986289c1653d9608e53ccb444 /chromium/components/search_engines/template_url.cc
parentb7034d0803538058e5c9d904ef03cf5eab34f6ef (diff)
downloadqtwebengine-chromium-7961cea6d1041e3e454dae6a1da660b453efd238.tar.gz
BASELINE: Update Chromium to 78.0.3904.130
Change-Id: If185e0c0061b3437531c97c9c8c78f239352a68b Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/components/search_engines/template_url.cc')
-rw-r--r--chromium/components/search_engines/template_url.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/components/search_engines/template_url.cc b/chromium/components/search_engines/template_url.cc
index 15c5ccd1f89..96c96e154c4 100644
--- a/chromium/components/search_engines/template_url.cc
+++ b/chromium/components/search_engines/template_url.cc
@@ -386,6 +386,11 @@ std::string TemplateURLRef::ReplaceSearchTerms(
query_params.push_back(search_terms_args.additional_query_params);
if (!gurl.query().empty())
query_params.push_back(gurl.query());
+ if (owner_->created_from_play_api()) {
+ // Append attribution parameter to query originating from Play API search
+ // engine.
+ query_params.push_back("chrome_dse_attribution=1");
+ }
if (query_params.empty())
return url;