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 3ef81d3d332d3561e26cfe46eea5d060c552164a..64b2ec1040c4cc533310f3826651f2c22525cdbd 100644 |
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc |
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc |
@@ -45,6 +45,13 @@ bool DataReductionProxyParams::IsIncludedInPreconnectHintingFieldTrial() { |
"DataCompressionProxyPreconnectHints") == kEnabled; |
} |
+// static |
+bool DataReductionProxyParams::IsIncludedInCriticalPathBypassFieldTrial() { |
+ return IsIncludedInFieldTrial() && |
+ FieldTrialList::FindFullName( |
+ "DataCompressionProxyCriticalBypass") == kEnabled; |
+} |
+ |
DataReductionProxyParams::DataReductionProxyParams(int flags) |
: allowed_((flags & kAllowed) == kAllowed), |
fallback_allowed_((flags & kFallbackAllowed) == kFallbackAllowed), |