Index: components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc |
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc |
index 80139f554da1b0deba67964d7b760969cc6cfb18..1612ce3b96b80107268fe6427ccf5ae80054aba7 100644 |
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc |
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc |
@@ -97,6 +97,12 @@ bool DataReductionProxyParams::IsIncludedInAndroidOnePromoFieldTrial( |
return (fingerprint.find(kAndroidOneIdentifier) != std::string::npos); |
} |
+// static |
+bool DataReductionProxyParams::IsDataReductionProxyLoFiEnabled() { |
+ return base::CommandLine::ForCurrentProcess()->HasSwitch( |
+ data_reduction_proxy::switches::kEnableDataReductionProxyLoFi); |
+} |
+ |
DataReductionProxyTypeInfo::DataReductionProxyTypeInfo() |
: proxy_servers(), |
is_fallback(false), |