summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run.h
diff options
context:
space:
mode:
authormirandac@google.com <mirandac@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 15:48:05 +0000
committermirandac@google.com <mirandac@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 15:48:05 +0000
commit39909f9ccfd4746f8bac60bb356032efcd0951d3 (patch)
tree49994e45b4993e5676e2e1c51fbeb26f1f0ebdd8 /chrome/browser/first_run.h
parent7c46c809686906f9c5bd33dadb2836c00f909104 (diff)
downloadchromium_src-39909f9ccfd4746f8bac60bb356032efcd0951d3.zip
chromium_src-39909f9ccfd4746f8bac60bb356032efcd0951d3.tar.gz
chromium_src-39909f9ccfd4746f8bac60bb356032efcd0951d3.tar.bz2
Allow randomized search engines in selection dialog.
Add an option in the master_preferences to randomize the order of logos in the search engine selection screen. This allows us to cull out a small subset of users to take part in a test of the effects of logo position on search engine choice. I also filed http://crbug.com/46606 to remind me to revert this change when testing is complete. BUG=46302 TEST=Add the following options to master_preferences: "distribution": { "search_engine_experiment": true, "search_engine_experiment_randomize": true } Run a few times as --first-run, and see search engines appear in random order in the selection box. Review URL: http://codereview.chromium.org/2808006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49950 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run.h')
-rw-r--r--chrome/browser/first_run.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/first_run.h b/chrome/browser/first_run.h
index 92c80c0..6994855 100644
--- a/chrome/browser/first_run.h
+++ b/chrome/browser/first_run.h
@@ -44,6 +44,7 @@ class FirstRun {
int do_import_items;
int dont_import_items;
bool run_search_engine_experiment;
+ bool randomize_search_engine_experiment;
std::vector<GURL> new_tabs;
std::vector<GURL> bookmarks;
};
@@ -262,6 +263,8 @@ class FirstRunImportObserver : public ImportObserver {
// preferences and will override default behavior of importer.
// |search_engine_experiment| indicates whether the experimental search engine
// window should be shown.
+// |randomize_search_engine_experiment| is true if the logos in the search
+// engine window should be shown in randomized order.
// Returns true if the user clicked "Start", false if the user pressed "Cancel"
// or closed the dialog.
bool OpenFirstRunDialog(Profile* profile,
@@ -269,6 +272,7 @@ bool OpenFirstRunDialog(Profile* profile,
int import_items,
int dont_import_items,
bool search_engine_experiment,
+ bool randomize_search_engine_experiment,
ProcessSingleton* process_singleton);
#endif // CHROME_BROWSER_FIRST_RUN_H_