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

Unified Diff: chrome/browser/first_run_win.cc

Issue 2808006: Allow randomized search engines in selection dialog.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 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/first_run_win.cc
===================================================================
--- chrome/browser/first_run_win.cc (revision 49796)
+++ chrome/browser/first_run_win.cc (working copy)
@@ -324,6 +324,13 @@
&value) && value) {
// Set the first run dialog to include the search choice window.
out_prefs->run_search_engine_experiment = true;
+ // Check to see if search engine logos should be randomized.
+ if (installer_util::GetDistroBooleanPreference(prefs.get(),
+ installer_util::master_preferences::
+ kSearchEngineExperimentRandomizePref,
+ &value) && value) {
+ out_prefs->randomize_search_engine_experiment = true;
+ }
// Set the first run bubble to minimal.
FirstRun::SetMinimalFirstRunBubblePref();
}
@@ -491,6 +498,7 @@
int import_items,
int dont_import_items,
bool search_engine_experiment,
+ bool randomize_search_engine_experiment,
ProcessSingleton* process_singleton) {
DCHECK(profile);
DCHECK(process_singleton);
@@ -502,7 +510,8 @@
homepage_defined,
import_items,
dont_import_items,
- search_engine_experiment));
+ search_engine_experiment,
+ randomize_search_engine_experiment));
first_run_view->set_parent_owned(false);
views::Window* first_run_ui = views::Window::CreateChromeWindow(
NULL, gfx::Rect(), first_run_view.get());

Powered by Google App Engine
This is Rietveld 408576698