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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_params.cc

Issue 332313003: Add Finch experiment for selectively bypassing proxies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: callback design (not yet done) Created 6 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/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 ce691574c8ba001c03b48c4cbb7293306586e4f3..a58d3a2283a2755c39685a78487d3f06f5720b0e 100644
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_params.cc
@@ -43,6 +43,13 @@ bool DataReductionProxyParams::IsIncludedInPreconnectHintingFieldTrial() {
}
// static
+bool DataReductionProxyParams::IsIncludedInCriticalPathBypassFieldTrial() {
+ return IsIncludedInFieldTrial() &&
+ FieldTrialList::FindFullName(
+ "DataCompressionProxyCriticalBypass") == kEnabled;
+}
+
+// static
bool DataReductionProxyParams::IsKeySetOnCommandLine() {
const CommandLine& command_line = *CommandLine::ForCurrentProcess();
return command_line.HasSwitch(

Powered by Google App Engine
This is Rietveld 408576698