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

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

Issue 2869863002: Enable QUIC for non core data saver proxies (Closed)
Patch Set: Reorder functions Created 3 years, 7 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 9c2c18b0ddeaec2659fbcb6afaadbe5b0c6c7de0..01c55e6d7d909252748b85763d7f8fd551bdd07b 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
@@ -240,6 +240,14 @@ bool IsIncludedInQuicFieldTrial() {
return true;
}
+bool IsQuicEnabledForNonCoreProxies() {
+ DCHECK(IsIncludedInQuicFieldTrial());
+ std::map<std::string, std::string> params;
+ variations::GetVariationParams(GetQuicFieldTrialName(), &params);
+ return GetStringValueForVariationParamWithDefaultValue(
+ params, "enable_quic_non_core_proxies", "false") == "true";
+}
+
const char* GetQuicFieldTrialName() {
return kQuicFieldTrial;
}

Powered by Google App Engine
This is Rietveld 408576698