| 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 743c844b0acf7c59a37c6d1bd41f2db2c25028d3..e1bda8eeaaceb286f360db2d341825c864636055 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
|
| @@ -87,6 +87,21 @@ bool DataReductionProxyParams::
|
| "DataReductionProxyRemoveMissingViaHeaderOtherBypass") == kEnabled;
|
| }
|
|
|
| +// static
|
| +bool DataReductionProxyParams::IsBypassWarningEnabledInFlags() {
|
| + if (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),
|
|
|