diff options
author | Nathan Pratta Teodosio <nathan.teodosio@canonical.com> | 2023-02-14 11:39:13 -0300 |
---|---|---|
committer | Nathan Pratta Teodosio <nathan.teodosio@canonical.com> | 2023-02-14 11:39:13 -0300 |
commit | 1f28bf8185f2f2081b8e46dd7090791705eb454c (patch) | |
tree | ad4a7d57e9fe2f74417a47eabc22964e7e533194 | |
parent | 51c2a295275b2c5ba75431f073fec9bd0ad3a972 (diff) |
search-credit.patch: Modify user agent.
-rw-r--r-- | build/chromium-patches/search-credit.patch | 15 |
1 files changed, 14 insertions, 1 deletions
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 <chad.miller@canonical.com> +Author: Nathan Pratta Teodosio <nathan.teodosio@canonical.com> 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 |