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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_params.cc

Issue 578883004: Added flag to enable the data reduction proxy alternative (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/browser/data_reduction_proxy_params.cc
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc
index 43d0795a573ce019e49491ef52d8bcc3a916862d..1019757eb95262c3dcb58d58545dc046545e9bab 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc
@@ -37,8 +37,11 @@ bool DataReductionProxyParams::IsIncludedInFieldTrial() {
// static
bool DataReductionProxyParams::IsIncludedInAlternativeFieldTrial() {
- return base::FieldTrialList::FindFullName(
- "DataCompressionProxyAlternativeConfiguration") == kEnabled;
+ const CommandLine& command_line = *CommandLine::ForCurrentProcess();
+ return (command_line.HasSwitch(
+ data_reduction_proxy::switches::kEnableDataReductionProxyAlt) ||
+ base::FieldTrialList::FindFullName(
+ "DataCompressionProxyAlternativeConfiguration") == kEnabled);
Alexei Svitkine (slow) 2014/09/17 20:15:07 Use the pattern recommended by go/finch-and-flags
bengr 2014/09/18 17:39:46 Done.
}
// static

Powered by Google App Engine
This is Rietveld 408576698