Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1771)

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_params.cc

Issue 583363002: Ignore MISSING_VIA_HEADER_OTHER bypasses if in relevant finch trial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/browser/data_reduction_proxy_params.cc
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc
index bfccd14c8b029145ed5d4f6407fa2eeadc35ce80..bdca85062c78f063f351f1e55a8c7939780359f4 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc
@@ -66,6 +66,19 @@ bool DataReductionProxyParams::IsIncludedInCriticalPathBypassFieldTrial() {
"DataCompressionProxyCriticalBypass") == kEnabled;
}
+// static
+bool DataReductionProxyParams::IsIncludedInHoldbackFieldTrial() {
+ return FieldTrialList::FindFullName(
+ "DataCompressionProxyHoldback") == kEnabled;
+}
+
+// static
+bool DataReductionProxyParams::
+ IsIncludedInRemoveMissingViaHeaderOtherBypassFieldTrial() {
+ return FieldTrialList::FindFullName(
+ "DataReductionProxyRemoveMissingViaHeaderOtherBypass") == kEnabled;
+}
+
DataReductionProxyTypeInfo::DataReductionProxyTypeInfo()
: proxy_servers(),
is_fallback(false),
@@ -76,11 +89,6 @@ DataReductionProxyTypeInfo::DataReductionProxyTypeInfo()
DataReductionProxyTypeInfo::~DataReductionProxyTypeInfo(){
}
-bool DataReductionProxyParams::IsIncludedInHoldbackFieldTrial() {
- return FieldTrialList::FindFullName(
- "DataCompressionProxyHoldback") == kEnabled;
-}
-
DataReductionProxyParams::DataReductionProxyParams(int flags)
: allowed_((flags & kAllowed) == kAllowed),
fallback_allowed_((flags & kFallbackAllowed) == kFallbackAllowed),

Powered by Google App Engine
This is Rietveld 408576698