Index: chrome/browser/ui/cocoa/simple_message_box_mac.mm |
diff --git a/chrome/browser/ui/cocoa/simple_message_box_mac.mm b/chrome/browser/ui/cocoa/simple_message_box_mac.mm |
index 9edf2f063526ddfc06b768982c8d73e904bf7d35..4f28806b8578b800a1cc179b398c57419d653f3d 100644 |
--- a/chrome/browser/ui/cocoa/simple_message_box_mac.mm |
+++ b/chrome/browser/ui/cocoa/simple_message_box_mac.mm |
@@ -7,6 +7,7 @@ |
#import <Cocoa/Cocoa.h> |
#include "base/sys_string_conversions.h" |
+#include "chrome/common/startup_metric_utils.h" |
#include "grit/generated_resources.h" |
#include "ui/base/l10n/l10n_util_mac.h" |
@@ -16,6 +17,8 @@ MessageBoxResult ShowMessageBox(gfx::NativeWindow parent, |
const string16& title, |
const string16& message, |
MessageBoxType type) { |
+ StartupMetricUtils::SetNonBrowserUIDisplayed(); |
+ |
// Ignore the title; it's the window title on other platforms and ignorable. |
NSAlert* alert = [[[NSAlert alloc] init] autorelease]; |
[alert setMessageText:base::SysUTF16ToNSString(message)]; |