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

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

Issue 2537503002: [Prerender] Get the prerender mode from Finch field trial. (Closed)
Patch Set: Feature API Created 4 years 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/prerender/prerender_field_trial.h
diff --git a/chrome/browser/prerender/prerender_field_trial.h b/chrome/browser/prerender/prerender_field_trial.h
index 4480732e3320cfe10f7ec93f6323d0faa70b582a..54120702314a8deebae313ac009fd51241328af3 100644
--- a/chrome/browser/prerender/prerender_field_trial.h
+++ b/chrome/browser/prerender/prerender_field_trial.h
@@ -5,18 +5,17 @@
#ifndef CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_
#define CHROME_BROWSER_PRERENDER_PRERENDER_FIELD_TRIAL_H_
-class Profile;
+#include "base/feature_list.h"
-namespace base {
-class CommandLine;
-}
+class Profile;
namespace prerender {
-// Parse the --prerender= command line switch, which controls prerendering. If
-// the switch is unset or is set to "auto" then the user is assigned to a
-// field trial.
-void ConfigurePrerender(const base::CommandLine& command_line);
+extern const base::Feature kNoStatePrefetchFeature;
pasko 2016/12/01 16:47:58 do we want the feature in about:flags as well? (so
droger 2016/12/01 17:17:40 It seems that there is one (and only one) feature
droger 2016/12/02 16:51:23 I looked into this, and I have a working prototype
+
+// Configures prerender using kNoStatePrefetchFeature and field trial
+// parameters.
+void ConfigurePrerender();
// Returns true if the user has opted in or has been opted in to the
// prerendering from Omnibox experiment.

Powered by Google App Engine
This is Rietveld 408576698