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 ce691574c8ba001c03b48c4cbb7293306586e4f3..a58d3a2283a2755c39685a78487d3f06f5720b0e 100644 |
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc |
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc |
@@ -43,6 +43,13 @@ bool DataReductionProxyParams::IsIncludedInPreconnectHintingFieldTrial() { |
} |
// static |
+bool DataReductionProxyParams::IsIncludedInCriticalPathBypassFieldTrial() { |
+ return IsIncludedInFieldTrial() && |
+ FieldTrialList::FindFullName( |
+ "DataCompressionProxyCriticalBypass") == kEnabled; |
+} |
+ |
+// static |
bool DataReductionProxyParams::IsKeySetOnCommandLine() { |
const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
return command_line.HasSwitch( |