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

Unified Diff: chrome/browser/ui/search/search.h

Issue 12094073: Use an experiment value to set the instant_extended.enabled pref default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
Index: chrome/browser/ui/search/search.h
diff --git a/chrome/browser/ui/search/search.h b/chrome/browser/ui/search/search.h
index d7364b74e38501a170cda9738853e06223504ff7..bd51062f52f3a0059083dd0d5f36055b9217e742 100644
--- a/chrome/browser/ui/search/search.h
+++ b/chrome/browser/ui/search/search.h
@@ -17,6 +17,16 @@ class Profile;
namespace chrome {
namespace search {
+enum InstantExtendedDefault {
+ INSTANT_FORCE_ON, // Force the setting on if no other setting exists.
+ INSTANT_USE_EXISTING, // Use same the value of the old instant.enabled pref.
+ INSTANT_FORCE_OFF, // Force the setting off if no other setting exists.
+};
+
+// Returns an enum value indicating which mode to set the new
+// instant_extended.enabled pref to by default.
+InstantExtendedDefault GetInstantExtendedDefaultSetting();
+
// Returns whether the Instant extended API is enabled for the given |profile|.
// |profile| may not be NULL.
bool IsInstantExtendedAPIEnabled(Profile* profile);
@@ -47,7 +57,7 @@ typedef std::vector<std::pair<std::string, std::string> > FieldTrialFlags;
// Given a field trial group name, parses out the group number and configuration
// flags.
// Exposed for testing only.
MAD 2013/01/31 15:44:57 Document return value?
robertshield 2013/01/31 18:56:52 Done.
-void GetFieldTrialInfo(const std::string& group_name,
+bool GetFieldTrialInfo(const std::string& group_name,
FieldTrialFlags* flags,
uint64* group_number);

Powered by Google App Engine
This is Rietveld 408576698