26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Zoraver Kang <Zoraver@users.noreply.github.com>
|
||
|
Date: Sat, 15 Jan 2022 13:34:33 -0500
|
||
|
Subject: [PATCH] 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
|
||
|
index 2818ede04d78a..d1512714b0ab9 100644
|
||
|
--- a/components/variations/net/variations_http_headers.cc
|
||
|
+++ b/components/variations/net/variations_http_headers.cc
|
||
|
@@ -118,10 +118,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
|