| 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 2c48e9d474cfd409f7a39b0a0759b3245e24949a..9bbec293aded2d89d81a33c6316a726dc2c43c77 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
|
| @@ -102,6 +102,22 @@ bool DataReductionProxyParams::IsIncludedInAndroidOnePromoFieldTrial(
|
| bool DataReductionProxyParams::IsLoFiEnabled() {
|
| return base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| data_reduction_proxy::switches::kEnableDataReductionProxyLoFi);
|
| +
|
| +}
|
| +
|
| +//static
|
| +bool DataReductionProxyParams::WarnIfNoDataReductionProxy() {
|
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + data_reduction_proxy::switches::
|
| + kEnableDataReductionProxyBypassWarning)) {
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| +// static
|
| +bool DataReductionProxyParams::CanProxyURLScheme(const GURL& url) {
|
| + return url.SchemeIs(url::kHttpScheme);
|
| }
|
|
|
| DataReductionProxyTypeInfo::DataReductionProxyTypeInfo()
|
|
|