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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 212533004: Add chrome-side code for autoreload experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Move experiment use to browser Created 6 years, 9 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 | chrome/renderer/net/net_error_helper.cc » ('j') | chrome/renderer/net/net_error_helper.cc » ('J')
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 293df39624fa2c7b9a48d7edbe74be8207f62b31..731c7654536d3ea464d7aa99e85f0145bef3bd98 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -1548,6 +1548,16 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
#endif
}
+ {
+ // Enable auto-reload if this session is in the field trial or the user
+ // explicitly enabled it.
+ std::string group =
+ base::FieldTrialList::FindFullName("AutoReloadExperiment");
+ if (group == "Enabled" ||
+ browser_command_line.HasSwitch(switches::kEnableOfflineAutoReload))
+ command_line->AppendSwitch(switches::kEnableOfflineAutoReload);
mmenke 2014/03/28 14:54:02 nit: +braces
Elly Fong-Jones 2014/03/28 15:23:37 Done.
+ }
+
// Please keep this in alphabetical order.
static const char* const kSwitchNames[] = {
autofill::switches::kDisableIgnoreAutocompleteOff,
@@ -1577,7 +1587,6 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
switches::kEnableNaClDebug,
switches::kEnableNaClNonSfiMode,
switches::kEnableNetBenchmarking,
- switches::kEnableOfflineAutoReload,
switches::kEnableStreamlinedHostedApps,
switches::kEnableWatchdog,
switches::kMemoryProfiling,
« no previous file with comments | « no previous file | chrome/renderer/net/net_error_helper.cc » ('j') | chrome/renderer/net/net_error_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698