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

Unified Diff: chrome/browser/ui/cocoa/first_run_dialog.mm

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/ui/cocoa/first_run_dialog.mm
diff --git a/chrome/browser/ui/cocoa/first_run_dialog.mm b/chrome/browser/ui/cocoa/first_run_dialog.mm
index 8ec5ce268762a2557a69e9468b0b4c00640b10bd..f5158bca26d22eccee83c318453df62cff2c601e 100644
--- a/chrome/browser/ui/cocoa/first_run_dialog.mm
+++ b/chrome/browser/ui/cocoa/first_run_dialog.mm
@@ -159,7 +159,8 @@ void ShowFirstRunDialog(Profile* profile) {
ofType:@"nib"];
if ((self = [super initWithWindowNibPath:nibpath owner:self])) {
// Bound to the dialog checkboxes.
- makeDefaultBrowser_ = ShellIntegration::CanSetAsDefaultBrowser();
+ makeDefaultBrowser_ = ShellIntegration::CanSetAsDefaultBrowser() !=
+ ShellIntegration::CHANGE_DEFAULT_NOT_ALLOWED;
statsEnabled_ = StatsCheckboxDefault();
}
return self;

Powered by Google App Engine
This is Rietveld 408576698