| 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..6c40b425221740f706f026d001e3d8da6ca582b1 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,21 @@ bool DataReductionProxyParams::IsIncludedInAndroidOnePromoFieldTrial(
|
| return (fingerprint.find(kAndroidOneIdentifier) != std::string::npos);
|
| }
|
|
|
| +//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()
|
| : proxy_servers(),
|
| is_fallback(false),
|
|
|