Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1784)

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_params.cc

Issue 684223003: Data Reduction Proxy Interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 24ae0085b2de7ff912435c77eb7cfe64a8ec3484..f54e0e872955c53142a13af30afdd42f092d7387 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
@@ -85,6 +85,16 @@ bool DataReductionProxyParams::
"DataReductionProxyRemoveMissingViaHeaderOtherBypass") == kEnabled;
}
+// static
+bool DataReductionProxyParams::IsIncludedInBypassWarningTrial() {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ data_reduction_proxy::switches::
+ kEnableDataReductionProxyBypassWarning)) {
+ return true;
+ }
+ return false;
+}
+
DataReductionProxyTypeInfo::DataReductionProxyTypeInfo()
: proxy_servers(),
is_fallback(false),

Powered by Google App Engine
This is Rietveld 408576698