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

Unified Diff: chrome/browser/first_run/first_run.cc

Issue 3298004: Set default browser AFTER import.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | « chrome/browser/first_run/first_run.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/first_run/first_run.cc
===================================================================
--- chrome/browser/first_run/first_run.cc (revision 58106)
+++ chrome/browser/first_run/first_run.cc (working copy)
@@ -206,7 +206,7 @@
if (installer_util::GetDistroBooleanPreference(prefs.get(),
installer_util::master_preferences::kMakeChromeDefaultForUser, &value) &&
value)
- ShellIntegration::SetAsDefaultBrowser();
+ out_prefs->make_chrome_default = true;
// TODO(mirandac): Refactor skip-first-run-ui process into regular first run
// import process. http://crbug.com/49647
@@ -282,6 +282,11 @@
}
#endif
+ if (installer_util::GetDistroBooleanPreference(prefs.get(),
+ installer_util::master_preferences::kMakeChromeDefaultForUser, &value) &&
+ value)
+ ShellIntegration::SetAsDefaultBrowser();
+
return false;
}
@@ -466,6 +471,7 @@
int dont_import_items,
bool search_engine_experiment,
bool randomize_search_engine_experiment,
+ bool make_chrome_default,
ProcessSingleton* process_singleton) {
// We need to avoid dispatching new tabs when we are importing because
// that will lead to data corruption or a crash. Because there is no UI for
@@ -529,6 +535,9 @@
ShowFirstRunDialog(profile, randomize_search_engine_experiment);
}
+ if (make_chrome_default)
+ ShellIntegration::SetAsDefaultBrowser();
+
FirstRun::SetShowFirstRunBubblePref(true);
// Set the first run bubble to minimal.
FirstRun::SetMinimalFirstRunBubblePref();
« no previous file with comments | « chrome/browser/first_run/first_run.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698