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

Issue 2808006: Allow randomized search engines in selection dialog.... (Closed)

Created:
10 years, 6 months ago by Miranda Callahan
Modified:
9 years, 7 months ago
Reviewers:
mattm
CC:
chromium-reviews, kuchhal, John Grabowski, brettw-cc_chromium.org, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

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. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49950

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -28 lines) Patch
M chrome/browser/browser_main.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/first_run.h View 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/first_run_gtk.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/first_run_mac.mm View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/first_run_win.cc View 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/views/first_run_customize_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/views/first_run_customize_view.cc View 1 chunk +10 lines, -8 lines 2 comments Download
M chrome/browser/views/first_run_search_engine_view.h View 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/views/first_run_search_engine_view.cc View 4 chunks +14 lines, -2 lines 2 comments Download
M chrome/browser/views/first_run_view.h View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/views/first_run_view.cc View 4 chunks +11 lines, -7 lines 0 comments Download
M chrome/browser/views/first_run_view_base.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/views/first_run_view_base.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.cc View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Miranda Callahan
10 years, 6 months ago (2010-06-15 23:09:21 UTC) #1
mattm
lgtm with comments http://codereview.chromium.org/2808006/diff/1/7 File chrome/browser/views/first_run_customize_view.cc (right): http://codereview.chromium.org/2808006/diff/1/7#newcode25 chrome/browser/views/first_run_customize_view.cc:25: FirstRunCustomizeView::FirstRunCustomizeView(Profile* profile, I believe the first ...
10 years, 6 months ago (2010-06-16 00:20:26 UTC) #2
Miranda Callahan
10 years, 6 months ago (2010-06-16 15:30:00 UTC) #3
http://codereview.chromium.org/2808006/diff/1/7
File chrome/browser/views/first_run_customize_view.cc (right):

http://codereview.chromium.org/2808006/diff/1/7#newcode25
chrome/browser/views/first_run_customize_view.cc:25:
FirstRunCustomizeView::FirstRunCustomizeView(Profile* profile,
On 2010/06/16 00:20:26, mattm wrote:
> I believe the first arg should also go on the next line with this style of
> wrapping

Done.

http://codereview.chromium.org/2808006/diff/1/9
File chrome/browser/views/first_run_search_engine_view.cc (right):

http://codereview.chromium.org/2808006/diff/1/9#newcode262
chrome/browser/views/first_run_search_engine_view.cc:262:
search_engine_choices_.end());
On 2010/06/16 00:20:26, mattm wrote:
> I guess it's not really important for this usage, but might be nicer to add a
> RandomNumberGenerator adapter class to base/rand_util.h and let random_shuffle
> use that instead of the C rand.

Good idea -- I'll file a bug for it, but will let it go for this usage.

Powered by Google App Engine
This is Rietveld 408576698