Index: chrome/browser/about_flags.cc |
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc |
index a8728bd1fa722984e90b2c29ed24caf69dcb7af0..e53f8fd390c84b45c79961566f066efce591cc1a 100644 |
--- a/chrome/browser/about_flags.cc |
+++ b/chrome/browser/about_flags.cc |
@@ -2119,6 +2119,16 @@ const Experiment kExperiments[] = { |
kOsDesktop, |
SINGLE_VALUE_TYPE(switches::kEnableDelayAgnosticAec) |
}, |
+#if defined(OS_ANDROID) |
+ { |
+ "enable-data-reduction-proxy-bypass-warning", |
+ IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_BYPASS_WARNING_NAME, |
+ IDS_FLAGS_ENABLE_DATA_REDUCTION_PROXY_BYPASS_WARNING_DESCRIPTION, |
+ kOsAndroid, |
+ SINGLE_VALUE_TYPE(data_reduction_proxy::switches:: |
+ kEnableDataReductionProxyBypassWarning) |
+ }, |
+#endif |
// NOTE: Adding new command-line switches requires adding corresponding |
// entries to enum "LoginCustomFlags" in histograms.xml. See note in |
@@ -2232,15 +2242,25 @@ bool SkipConditionalExperiment(const Experiment& experiment, |
} |
#if defined(OS_ANDROID) |
+ chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel(); |
// enable-data-reduction-proxy-dev is only available for the Dev/Beta channel. |
if (!strcmp("enable-data-reduction-proxy-dev", experiment.internal_name) && |
- chrome::VersionInfo::GetChannel() != chrome::VersionInfo::CHANNEL_BETA && |
- chrome::VersionInfo::GetChannel() != chrome::VersionInfo::CHANNEL_DEV) { |
+ channel != chrome::VersionInfo::CHANNEL_BETA && |
+ channel != chrome::VersionInfo::CHANNEL_DEV) { |
return true; |
} |
// enable-data-reduction-proxy-alt is only available for the Dev channel. |
if (!strcmp("enable-data-reduction-proxy-alt", experiment.internal_name) && |
- chrome::VersionInfo::GetChannel() != chrome::VersionInfo::CHANNEL_DEV) { |
+ channel != chrome::VersionInfo::CHANNEL_DEV) { |
+ return true; |
+ } |
+ // enable-data-reduction-proxy-bypass-warning is only available for Chromium |
+ // builds and Canary/Dev channel. |
+ if (!strcmp("enable-data-reduction-proxy-bypass-warning", |
+ experiment.internal_name) && |
+ channel != chrome::VersionInfo::CHANNEL_UNKNOWN && |
+ channel != chrome::VersionInfo::CHANNEL_CANARY && |
+ channel != chrome::VersionInfo::CHANNEL_DEV) { |
return true; |
} |
#endif |