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 66cf6ce5f52379917ffc374185a93317bdd5753e..6cae61fac45cbac2b66fecc4f691f1ea40fb76ef 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,
@@ -892,6 +893,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()) {