summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/first_run_view.cc
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-28 19:30:51 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-28 19:30:51 +0000
commitb938c4cd5adac79efc4453ccf1a53f9e70c29293 (patch)
treeb3f9fc8d3a2d78040a556390107cbe47e4e47c7b /chrome/browser/views/first_run_view.cc
parentd5b1095fcec717e36067c3c170aad7030015250e (diff)
downloadchromium_src-b938c4cd5adac79efc4453ccf1a53f9e70c29293.zip
chromium_src-b938c4cd5adac79efc4453ccf1a53f9e70c29293.tar.gz
chromium_src-b938c4cd5adac79efc4453ccf1a53f9e70c29293.tar.bz2
Make Chrome default after importing from current default browser.
BUG=11094 Review URL: http://codereview.chromium.org/99136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14762 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/first_run_view.cc')
-rw-r--r--chrome/browser/views/first_run_view.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/views/first_run_view.cc b/chrome/browser/views/first_run_view.cc
index 198e253..43f3384 100644
--- a/chrome/browser/views/first_run_view.cc
+++ b/chrome/browser/views/first_run_view.cc
@@ -178,13 +178,13 @@ bool FirstRunView::Accept() {
customize_link_->SetEnabled(false);
CreateDesktopShortcut();
CreateQuickLaunchShortcut();
- if (default_browser_->checked())
- SetDefaultBrowser();
// Index 0 is the default browser.
FirstRun::ImportSettings(profile_,
importer_host_->GetSourceProfileInfoAt(0).browser_type,
GetDefaultImportItems(), window()->GetNativeWindow());
UserMetrics::RecordAction(L"FirstRunDef_Accept", profile_);
+ if (default_browser_->checked())
+ SetDefaultBrowser();
return true;
}