summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-13 19:34:21 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-13 19:34:21 +0000
commitd1f48ef56205502ec5556031a3dba30d50e71abe (patch)
tree25b825a77b9756f46027ce52488ee93903844028 /chrome/browser/ui/cocoa
parent8d654e87200a78cf44729e144c8ff282b721c804 (diff)
downloadchromium_src-d1f48ef56205502ec5556031a3dba30d50e71abe.zip
chromium_src-d1f48ef56205502ec5556031a3dba30d50e71abe.tar.gz
chromium_src-d1f48ef56205502ec5556031a3dba30d50e71abe.tar.bz2
extensions: Make use of simple_message_box functions in ExtensionsStartupUtil.
This is a follow up to r133396. R=aa@chromium.org Review URL: https://chromiumcodereview.appspot.com/10219013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136806 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/cocoa')
-rw-r--r--chrome/browser/ui/cocoa/simple_message_box_mac.mm12
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/browser/ui/cocoa/simple_message_box_mac.mm b/chrome/browser/ui/cocoa/simple_message_box_mac.mm
index 269c881..055150a 100644
--- a/chrome/browser/ui/cocoa/simple_message_box_mac.mm
+++ b/chrome/browser/ui/cocoa/simple_message_box_mac.mm
@@ -12,14 +12,18 @@
namespace browser {
-void ShowWarningMessageBox(gfx::NativeWindow parent,
- const string16& title,
- const string16& message) {
+void ShowMessageBox(gfx::NativeWindow parent,
+ const string16& title,
+ const string16& message,
+ MessageBoxType type) {
// Ignore the title; it's the window title on other platforms and ignorable.
NSAlert* alert = [[[NSAlert alloc] init] autorelease];
[alert addButtonWithTitle:l10n_util::GetNSString(IDS_OK)];
[alert setMessageText:base::SysUTF16ToNSString(message)];
- [alert setAlertStyle:NSWarningAlertStyle];
+ if (type == MESSAGE_BOX_TYPE_INFORMATION)
+ [alert setAlertStyle:NSInformationalAlertStyle];
+ else
+ [alert setAlertStyle:NSWarningAlertStyle];
[alert runModal];
}