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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 280353002: Disable auto-reload on mobile canary and dev channels. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Hard disable on mobile Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 06b97e7f9bcecdad3efef4f6b4c870917907cd30..bbbb6bcdd8d768a3e3a48c28df4cb1086bc6c7e2 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1562,18 +1562,17 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
if (hard_enabled) {
command_line->AppendSwitch(switches::kEnableOfflineAutoReload);
} else if (!hard_disabled) {
+ std::string group =
+ base::FieldTrialList::FindFullName("AutoReloadExperiment");
+#if !defined(OS_ANDROID) && !defined(OS_IOS)
chrome::VersionInfo::Channel channel =
chrome::VersionInfo::GetChannel();
-#if defined(OS_ANDROID) || defined(OS_IOS)
- chrome::VersionInfo::Channel kForceChannel =
- chrome::VersionInfo::CHANNEL_DEV;
-#else
chrome::VersionInfo::Channel kForceChannel =
chrome::VersionInfo::CHANNEL_CANARY;
-#endif
- std::string group =
- base::FieldTrialList::FindFullName("AutoReloadExperiment");
if (channel <= kForceChannel || group == "Enabled")
+#else
+ if (group == "Enabled")
+#endif
command_line->AppendSwitch(switches::kEnableOfflineAutoReload);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698