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

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

Issue 791493015: Adding q=low to the Chrome-Proxy request header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 04f16b456f88a753578443d020b5b685b353b739..02f60216220e3ce2002af346deb94c179d1c5f56 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,15 @@ bool DataReductionProxyParams::IsIncludedInAndroidOnePromoFieldTrial(
return (fingerprint.find(kAndroidOneIdentifier) != std::string::npos);
}
+// static
+bool DataReductionProxyParams::IsLoFiCommandLineSwitchOn() {
bengr 2015/01/17 01:06:17 I'd change this either to HasLowFiCommandLineSwitc
megjablon 2015/01/24 01:48:59 Done.
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
bengr 2015/01/17 01:06:17 How about: return base::CommandLine::ForCurrentPr
megjablon 2015/01/24 01:48:59 Done.
+ data_reduction_proxy::switches::kEnableDataReductionProxyLoFi)) {
+ return true;
+ }
+ return false;
+}
+
DataReductionProxyTypeInfo::DataReductionProxyTypeInfo()
: proxy_servers(),
is_fallback(false),

Powered by Google App Engine
This is Rietveld 408576698