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

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..e42b14569ca87b9e955ff5f232eb31c34802b2fb 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,13 @@ bool DataReductionProxyParams::IsIncludedInFieldTrial() {
// static
bool DataReductionProxyParams::IsIncludedInAlternativeFieldTrial() {
- return base::FieldTrialList::FindFullName(
- "DataCompressionProxyAlternativeConfiguration") == kEnabled;
+ const std::string group_name = base::FieldTrialList::FindFullName(
+ "DataCompressionProxyAlternativeConfiguration");
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ data_reduction_proxy::switches::kEnableDataReductionProxyAlt)) {
+ return true;
+ }
+ return group_name == kEnabled;
}
// static
« no previous file with comments | « chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698