Index: chrome/browser/ui/cocoa/first_run_dialog.mm |
=================================================================== |
--- chrome/browser/ui/cocoa/first_run_dialog.mm (revision 199532) |
+++ chrome/browser/ui/cocoa/first_run_dialog.mm (working copy) |
@@ -78,7 +78,9 @@ |
FirstRunShowBridge::~FirstRunShowBridge() {} |
// Show the first run UI. |
-void ShowFirstRun(Profile* profile) { |
+// Returns true if the first run dialog was shown. |
+bool ShowFirstRun(Profile* profile) { |
+ bool dialog_shown = false; |
#if defined(GOOGLE_CHROME_BUILD) |
// The purpose of the dialog is to ask the user to enable stats and crash |
// reporting. This setting may be controlled through configuration management |
@@ -93,6 +95,7 @@ |
[[FirstRunDialogController alloc] init]); |
[dialog.get() showWindow:nil]; |
+ dialog_shown = true; |
// If the dialog asked the user to opt-in for stats and crash reporting, |
// record the decision and enable the crash reporter if appropriate. |
@@ -129,6 +132,8 @@ |
first_run::SetShowFirstRunBubblePref(first_run::FIRST_RUN_BUBBLE_SHOW); |
} |
first_run::SetShouldShowWelcomePage(); |
+ |
+ return dialog_shown; |
} |
// True when the stats checkbox should be checked by default. This is only |
@@ -142,8 +147,8 @@ |
namespace first_run { |
-void ShowFirstRunDialog(Profile* profile) { |
- ShowFirstRun(profile); |
+bool ShowFirstRunDialog(Profile* profile) { |
+ return ShowFirstRun(profile); |
} |
} // namespace first_run |