Files
brave-core/patches/components-embedder_support-user_agent_utils.cc.patch
T

26 lines
1.1 KiB
Diff

diff --git a/components/embedder_support/user_agent_utils.cc b/components/embedder_support/user_agent_utils.cc
index 5f72908b2a73a27989f4449d498356045480c469..b6404f5b04a3a6945637710cd775a0b9a174bc76 100644
--- a/components/embedder_support/user_agent_utils.cc
+++ b/components/embedder_support/user_agent_utils.cc
@@ -188,10 +188,11 @@ const blink::UserAgentBrandList GetUserAgentBrandList(
#if !BUILDFLAG(CHROMIUM_BRANDING)
brand = version_info::GetProductName();
#endif
+ BRAVE_GET_USER_AGENT_BRAND_LIST
std::string brand_version =
output_version_type == blink::UserAgentBrandVersionType::kFullVersion
- ? full_version
+ ? BRAVE_BRAND_VERSION_OVERRIDE_FOR_FULL_BRAND_VERSION_TYPE
: major_version;
return GenerateBrandVersionList(major_version_number, brand, brand_version,
@@ -898,6 +899,7 @@ std::string GetAndroidOSInfo(
// Send information about the device.
bool semicolon_inserted = false;
+ BRAVE_GET_ANDROID_OS_INFO
if (include_android_model == IncludeAndroidModel::Include) {
std::string android_device_name = BuildModelInfo();
if (!android_device_name.empty()) {