summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/first_run_view_base.cc
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-13 23:01:07 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-13 23:01:07 +0000
commitadfe188f467fda2936b1a051dff5280afefc5a13 (patch)
tree7912d2718ec605eee30c2c924ccd1a1f43752e68 /chrome/browser/views/first_run_view_base.cc
parent1de282c6e1cfbe4fed87babe242262b2d72330ff (diff)
downloadchromium_src-adfe188f467fda2936b1a051dff5280afefc5a13.zip
chromium_src-adfe188f467fda2936b1a051dff5280afefc5a13.tar.gz
chromium_src-adfe188f467fda2936b1a051dff5280afefc5a13.tar.bz2
Add new search engine dialog for first run process.
BUG= 37564 TEST= start Chrome with --first-run enabled -- you should see a new search engine selection dialog. Review URL: http://codereview.chromium.org/1586005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44416 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/first_run_view_base.cc')
-rw-r--r--chrome/browser/views/first_run_view_base.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/browser/views/first_run_view_base.cc b/chrome/browser/views/first_run_view_base.cc
index c83b20e..995ba3a 100644
--- a/chrome/browser/views/first_run_view_base.cc
+++ b/chrome/browser/views/first_run_view_base.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -33,7 +33,8 @@
#include "views/window/window.h"
FirstRunViewBase::FirstRunViewBase(Profile* profile, bool homepage_defined,
- int import_items, int dont_import_items)
+ int import_items, int dont_import_items,
+ bool search_engine_experiment)
: preferred_width_(0),
background_image_(NULL),
separator_1_(NULL),
@@ -44,7 +45,8 @@ FirstRunViewBase::FirstRunViewBase(Profile* profile, bool homepage_defined,
profile_(profile),
homepage_defined_(homepage_defined),
import_items_(import_items),
- dont_import_items_(dont_import_items) {
+ dont_import_items_(dont_import_items),
+ search_engine_experiment_(search_engine_experiment) {
DCHECK(profile);
SetupControls();
}
@@ -200,7 +202,9 @@ bool FirstRunViewBase::HasAlwaysOnTopMenu() const {
std::wstring FirstRunViewBase::GetDialogButtonLabel(
MessageBoxFlags::DialogButton button) const {
if (MessageBoxFlags::DIALOGBUTTON_OK == button)
- return l10n_util::GetString(IDS_FIRSTRUN_DLG_OK);
+ return search_engine_experiment_ ?
+ l10n_util::GetString(IDS_ACCNAME_NEXT) :
+ l10n_util::GetString(IDS_FIRSTRUN_DLG_OK);
// The other buttons get the default text.
return std::wstring();
}