From 537ba368e960b6dda5315aced16f827fda48b227 Mon Sep 17 00:00:00 2001 From: jj Date: Fri, 7 Nov 2025 13:10:20 +0100 Subject: [PATCH] helium/core: return "Google Chrome" as browser brand (#408) --- .../helium/core/spoof-chrome-ua-brand.patch | 21 +++++++++++++++++++ patches/series | 1 + 2 files changed, 22 insertions(+) create mode 100644 patches/helium/core/spoof-chrome-ua-brand.patch diff --git a/patches/helium/core/spoof-chrome-ua-brand.patch b/patches/helium/core/spoof-chrome-ua-brand.patch new file mode 100644 index 00000000..f206c613 --- /dev/null +++ b/patches/helium/core/spoof-chrome-ua-brand.patch @@ -0,0 +1,21 @@ +--- a/components/embedder_support/user_agent_utils.cc ++++ b/components/embedder_support/user_agent_utils.cc +@@ -205,17 +205,12 @@ const blink::UserAgentBrandList GetUserA + int major_version_number; + bool parse_result = base::StringToInt(major_version, &major_version_number); + DCHECK(parse_result); +- std::optional brand; +-#if !BUILDFLAG(CHROMIUM_BRANDING) +- brand = version_info::GetProductName(); +-#endif +- + std::string brand_version = + output_version_type == blink::UserAgentBrandVersionType::kFullVersion + ? full_version + : major_version; + +- return GenerateBrandVersionList(major_version_number, brand, brand_version, ++ return GenerateBrandVersionList(major_version_number, "Google Chrome", brand_version, + output_version_type, + additional_brand_version); + } diff --git a/patches/series b/patches/series index 4e96b0ba..52c373ce 100644 --- a/patches/series +++ b/patches/series @@ -142,6 +142,7 @@ helium/core/disable-user-education-nags.patch helium/core/replace-default-profile-name.patch helium/core/disable-live-caption-completely.patch helium/core/spoof-extension-downloader-platform.patch +helium/core/spoof-chrome-ua-brand.patch helium/core/add-helium-versioning.patch helium/core/enable-tab-search-toolbar-button.patch helium/core/hide-avatar-via-toolbar-prefs.patch