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

Unified Diff: chrome/browser/first_run_win.cc

Issue 3343001: Merge r58176: Set default browser after import (OS Win).... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/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.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_win.cc
===================================================================
--- chrome/browser/first_run_win.cc (revision 58106)
+++ chrome/browser/first_run_win.cc (working copy)
@@ -360,7 +360,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
@@ -417,6 +417,11 @@
}
}
+ if (installer_util::GetDistroBooleanPreference(prefs.get(),
+ installer_util::master_preferences::kMakeChromeDefaultForUser, &value) &&
+ value)
+ ShellIntegration::SetAsDefaultBrowser();
+
return false;
}
@@ -628,6 +633,7 @@
int dont_import_items,
bool search_engine_experiment,
bool randomize_search_engine_experiment,
+ bool make_chrome_default,
ProcessSingleton* process_singleton) {
FirstRun::CreateChromeDesktopShortcut();
// Windows 7 has deprecated the quick launch bar.
@@ -706,6 +712,9 @@
search_engine_dialog->Close();
}
+ 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.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698