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 aac5182d767e3082b80343cf6e2105529a93453d..5e78aca76c565bfeabf7ca3fc4c1cb862a2916bd 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 |
@@ -90,6 +90,21 @@ bool DataReductionProxyParams::IsIncludedInAndroidOnePromoFieldTrial( |
return (fingerprint.find(kAndroidOneIdentifier) != std::string::npos); |
} |
+//static |
+bool DataReductionProxyParams::IsInterstitalsCommandLineSwitchOn() { |
+ 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), |