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

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

Issue 2939783003: Enable DataReductionTrustedSpdyProxy experiment by default (Closed)
Patch Set: ps Created 3 years, 6 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 94aec4ce75cb06b28ca49ad29d49f38e9e665910..9b507c3fc9a48e58bf65bb26e730c3b9c0f18dff 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
@@ -120,7 +120,18 @@ const char* GetTrustedSpdyProxyFieldTrialName() {
}
bool IsIncludedInTrustedSpdyProxyFieldTrial() {
- return IsIncludedInFieldTrial(GetTrustedSpdyProxyFieldTrialName());
+ if (base::StartsWith(
+ FieldTrialList::FindFullName(GetTrustedSpdyProxyFieldTrialName()),
+ kControl, base::CompareCase::SENSITIVE)) {
+ return false;
+ }
+ if (base::StartsWith(
+ FieldTrialList::FindFullName(GetTrustedSpdyProxyFieldTrialName()),
+ kDisabled, base::CompareCase::SENSITIVE)) {
+ return false;
+ }
+ // Trusted SPDY proxy experiment is enabled by default.
+ return true;
}
const char* GetLoFiFieldTrialName() {

Powered by Google App Engine
This is Rietveld 408576698