Disable auto-reload on mobile canary and dev channels.

We currently don't have any data on auto-reload's usefulness or, more
importantly, its battery impact. Disabling it for dev pending investigation.

TEST=unit,trybot
BUG=

Review URL: https://codereview.chromium.org/280353002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270131 0039d316-1c4b-4281-b951-d872f2087c98
parent 7380ca75
......@@ -1582,18 +1582,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);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment