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 557eadb18229e4adb2f0092593877254e2f1fe7c..585ca3071f3579506be7ab489a7876e15295ae8c 100644
--- a/components/embedder_support/user_agent_utils.cc
+++ b/components/embedder_support/user_agent_utils.cc
@@ -166,10 +166,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,
@@ -885,6 +886,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()) {