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

Unified Diff: chrome/browser/about_flags.cc

Issue 684223003: Data Reduction Proxy Interstitials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index fe9a62323e0c3d1a085a53c33b935d7a0561ed04..d00ffeeecbbd58e99d09c3c481d72026cba6b03b 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -2136,7 +2136,6 @@ const Experiment kExperiments[] = {
kOsDesktop,
SINGLE_VALUE_TYPE(switches::kEnableDelayAgnosticAec)
},
-
{
"mark-non-secure-as", // FLAGS:RECORD_UMA
IDS_MARK_NON_SECURE_AS_NAME,
@@ -2144,7 +2143,6 @@ const Experiment kExperiments[] = {
kOsAll,
MULTI_VALUE_TYPE(kMarkNonSecureAsChoices)
},
-
{
"enable-site-per-process",
IDS_FLAGS_ENABLE_SITE_PER_PROCESS_NAME,
@@ -2161,6 +2159,16 @@ const Experiment kExperiments[] = {
SINGLE_VALUE_TYPE(chromeos::switches::kEnableTimeZoneTrackingOption)
},
#endif // defined(OS_CHROMEOS)
+#if defined(ENABLE_DATA_REDUCTION_PROXY_DEBUGGING)
+ {
+ "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
@@ -2274,15 +2282,28 @@ 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;
+ }
+#endif
+#if defined(ENABLE_DATA_REDUCTION_PROXY_DEBUGGING)
+ chrome::VersionInfo::Channel channel2 = chrome::VersionInfo::GetChannel();
+ // 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) &&
+ channel2 != chrome::VersionInfo::CHANNEL_UNKNOWN &&
+ channel2 != chrome::VersionInfo::CHANNEL_CANARY &&
+ channel2 != chrome::VersionInfo::CHANNEL_DEV) {
mmenke 2015/02/02 15:45:52 Hrm...Can we just make ENABLE_DATA_REDUCTION_PROXY
megjablon 2015/02/03 23:21:26 Is this possible? I'm not sure how to do this.
mmenke 2015/02/03 23:57:32 I'm assuming that the channel is a gyp variable, a
return true;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698