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

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

Issue 10453041: Support for interactive set-chrome-as-default in Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed for unittests + a typo or two. Created 8 years, 7 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
Index: chrome/browser/first_run/first_run.cc
diff --git a/chrome/browser/first_run/first_run.cc b/chrome/browser/first_run/first_run.cc
index f831c6b469b1c0405899bbe407af86ae07c60c8a..f4eb8b1a513520064bca414fb966e2c19a63f800 100644
--- a/chrome/browser/first_run/first_run.cc
+++ b/chrome/browser/first_run/first_run.cc
@@ -375,8 +375,11 @@ void AutoImportPlatformCommon(
ShowFirstRunDialog(profile);
}
- if (make_chrome_default)
+ if (make_chrome_default &&
+ ShellIntegration::CanSetAsDefaultBrowser() ==
+ ShellIntegration::CHANGE_DEFAULT_UNATTENDED) {
ShellIntegration::SetAsDefaultBrowser();
+ }
// Display the first run bubble if there is a default search provider.
TemplateURLService* template_url =

Powered by Google App Engine
This is Rietveld 408576698