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

Unified Diff: chrome/browser/prerender/prerender_field_trial.cc

Issue 2527233003: [Prerender] Add a "SimpleLoad" mode to be used as a comparison reference (Closed)
Patch Set: add command line flag Created 4 years, 1 month 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/browser/prerender/prerender_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_field_trial.cc
diff --git a/chrome/browser/prerender/prerender_field_trial.cc b/chrome/browser/prerender/prerender_field_trial.cc
index fd26ce8dc529126c87a624c175601e1728ca6fee..a726394b3f61bfbfd140f113c93fa818a43328e1 100644
--- a/chrome/browser/prerender/prerender_field_trial.cc
+++ b/chrome/browser/prerender/prerender_field_trial.cc
@@ -30,6 +30,8 @@ void ConfigurePrerender(const base::CommandLine& command_line) {
// The empty string means the option was provided with no value, and that
// means enable.
mode = PrerenderManager::PRERENDER_MODE_ENABLED;
+ } else if (switch_value == switches::kPrerenderModeSwitchValueSimpleLoad) {
+ mode = PrerenderManager::PRERENDER_MODE_SIMPLE_LOAD_EXPERIMENT;
} else {
mode = PrerenderManager::PRERENDER_MODE_DISABLED;
LOG(ERROR) << "Invalid --prerender option received on command line: "
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698