summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/first_run_view_base.cc
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 21:40:55 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-11 21:40:55 +0000
commit05e789d0a4728cf8cd2c153443d78992c624a945 (patch)
tree333067a9e46a1c27f8330ad2607ed02ac7db2a37 /chrome/browser/views/first_run_view_base.cc
parent48ca901238509dd4c5f7bb30c66ef36f5dafc828 (diff)
downloadchromium_src-05e789d0a4728cf8cd2c153443d78992c624a945.zip
chromium_src-05e789d0a4728cf8cd2c153443d78992c624a945.tar.gz
chromium_src-05e789d0a4728cf8cd2c153443d78992c624a945.tar.bz2
Do not import homepage on First Run if a homepage is given in master preferences.
BUG=9048 Review URL: http://codereview.chromium.org/164291 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23085 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 afb73f0..4d420e0 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) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 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.
@@ -30,14 +30,15 @@
#include "views/window/client_view.h"
#include "views/window/window.h"
-FirstRunViewBase::FirstRunViewBase(Profile* profile)
+FirstRunViewBase::FirstRunViewBase(Profile* profile, bool homepage_defined)
: preferred_width_(0),
background_image_(NULL),
separator_1_(NULL),
default_browser_(NULL),
separator_2_(NULL),
importer_host_(NULL),
- profile_(profile) {
+ profile_(profile),
+ homepage_defined_(homepage_defined) {
DCHECK(profile);
SetupControls();
}
@@ -163,7 +164,10 @@ int FirstRunViewBase::GetDefaultImportItems() const {
// It is best to avoid importing cookies because there is a bug that make
// the process take way too much time among other issues. So for the time
// being we say: TODO(CPU): Bug 1196875
- return HISTORY | FAVORITES | PASSWORDS | SEARCH_ENGINES | HOME_PAGE;
+ int items = HISTORY | FAVORITES | PASSWORDS | SEARCH_ENGINES;
+ if (!homepage_defined_)
+ items = items | HOME_PAGE;
+ return items;
};
void FirstRunViewBase::DisableButtons() {