LeOSium_webview/mulch/patches/0001-Vanadium/0078-use-Google-Chrome-bran...

22 lines
910 B
Diff
Raw Normal View History

2023-11-18 11:46:19 +01:00
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Zoraver Kang <Zoraver@users.noreply.github.com>
Date: Sun, 10 Oct 2021 21:59:16 -0400
Subject: [PATCH] use Google Chrome branding for client hints
---
components/embedder_support/user_agent_utils.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/components/embedder_support/user_agent_utils.cc b/components/embedder_support/user_agent_utils.cc
index c957a691efcac..51980cb81cd99 100644
--- a/components/embedder_support/user_agent_utils.cc
+++ b/components/embedder_support/user_agent_utils.cc
@@ -187,6 +187,7 @@ const blink::UserAgentBrandList GetUserAgentBrandList(
bool parse_result = base::StringToInt(major_version, &major_version_number);
DCHECK(parse_result);
absl::optional<std::string> brand;
+ brand = "Google Chrome";
#if !BUILDFLAG(CHROMIUM_BRANDING)
brand = version_info::GetProductName();
#endif