mirror of
https://github.com/morgan9e/helium
synced 2026-04-14 00:14:20 +09:00
helium/core: return "Google Chrome" as browser brand (#408)
This commit is contained in:
21
patches/helium/core/spoof-chrome-ua-brand.patch
Normal file
21
patches/helium/core/spoof-chrome-ua-brand.patch
Normal 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);
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user