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

Unified Diff: chrome/browser/views/first_run_view.cc

Issue 99136: Make Chrome default after importing from current default browser. (Closed)
Patch Set: Created 11 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/first_run_view.cc
diff --git a/chrome/browser/views/first_run_view.cc b/chrome/browser/views/first_run_view.cc
index 198e253fd63b8034c9b241aa899638fa3f37a466..43f33841bd3cf1bbbecfd7c62320e60ff809e0c8 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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698