Files
cromite/build/patches/disable-appending-variations-header.patch
T
CarlandGitHub 68e2652402 Patches for v97 (#1795)
Patches for v97

Add uazo's patch to build with use_sysroot=false
Start using new SystemWebView package name
Cleanup metrics patches and add a few more patches from Vanadium
Enable use_cfi_cast
2022-02-17 19:16:35 +01:00

26 lines
1.1 KiB
Diff

From: Zoraver Kang <Zoraver@users.noreply.github.com>
Date: Sat, 15 Jan 2022 13:34:33 -0500
Subject: disable appending variations header
---
components/variations/net/variations_http_headers.cc | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/components/variations/net/variations_http_headers.cc b/components/variations/net/variations_http_headers.cc
--- a/components/variations/net/variations_http_headers.cc
+++ b/components/variations/net/variations_http_headers.cc
@@ -100,10 +100,7 @@ URLValidationResult GetUrlValidationResult(const GURL& url) {
// Also, logs the result of validating |url| in histograms, one of which ends in
// |suffix|.
bool ShouldAppendVariationsHeader(const GURL& url, const std::string& suffix) {
- URLValidationResult result = GetUrlValidationResult(url);
- base::UmaHistogramEnumeration(
- "Variations.Headers.URLValidationResult." + suffix, result);
- return result == URLValidationResult::kShouldAppend;
+ return false;
}
// Returns true if the request is sent from a Google web property, i.e. from a
--
2.25.1