From 1f28bf8185f2f2081b8e46dd7090791705eb454c Mon Sep 17 00:00:00 2001 From: Nathan Pratta Teodosio Date: Tue, 14 Feb 2023 11:39:13 -0300 Subject: search-credit.patch: Modify user agent. --- build/chromium-patches/search-credit.patch | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/build/chromium-patches/search-credit.patch b/build/chromium-patches/search-credit.patch index e6ceb11..9bafe9a 100644 --- a/build/chromium-patches/search-credit.patch +++ b/build/chromium-patches/search-credit.patch @@ -1,5 +1,7 @@ -Description: Add Ubuntu id into search queries to get credit. +Description: Add Ubuntu id into search queries and modify user agent to get + credit. Author: Chad Miller +Author: Nathan Pratta Teodosio Forwarded: not-needed --- a/components/search_engines/prepopulated_engines.json @@ -66,3 +68,14 @@ Forwarded: not-needed if (!post_params_.empty()) EncodeFormData(post_params_, post_content); +--- a/content/common/user_agent.cc ++++ b/content/common/user_agent.cc +@@ -64,7 +64,7 @@ + #elif BUILDFLAG(IS_FUCHSIA) + return "Fuchsia"; + #elif BUILDFLAG(IS_LINUX) +- return "X11; Linux x86_64"; ++ return "X11; Ubuntu; Linux x86_64"; + #else + #error Unsupported platform + #endif -- cgit v1.2.3