helium/core: return "Google Chrome" as browser brand (#408)

This commit is contained in:
jj
2025-11-07 13:10:20 +01:00
committed by GitHub
parent 61c7f706eb
commit 537ba368e9
2 changed files with 22 additions and 0 deletions

View File

@@ -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<std::string> 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);
}

View File

@@ -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