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 |