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

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: Use forced enabled group 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..be9034e6ae49048290ca6dfe719b8cb1bd944b66 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc
@@ -25,6 +25,7 @@ using base::FieldTrialList;
namespace {
const char kEnabled[] = "Enabled";
+const char kForcedEnabled[] = "Forced_Enabled";
}
namespace data_reduction_proxy {
@@ -37,8 +38,11 @@ bool DataReductionProxyParams::IsIncludedInFieldTrial() {
// static
bool DataReductionProxyParams::IsIncludedInAlternativeFieldTrial() {
- return base::FieldTrialList::FindFullName(
- "DataCompressionProxyAlternativeConfiguration") == kEnabled;
+ return (
+ base::FieldTrialList::FindFullName(
+ "DataCompressionProxyAlternativeConfiguration") == kEnabled ||
+ base::FieldTrialList::FindFullName(
+ "DataCompressionProxyAlternativeConfiguration") == kForcedEnabled);
Alexei Svitkine (slow) 2014/09/18 17:46:40 The go/finch-and-flags page actually doesn't say t
bengr 2014/09/18 19:28:33 Done. I think.
}
// 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