summaryrefslogtreecommitdiffstats
path: root/chrome/browser/platform_util_mac.mm
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-30 19:43:18 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-30 19:43:18 +0000
commitf21cf2cfe34186333a591ee0788072889c2eaa3e (patch)
treede1a7e58c0d6e6547026a0f01570ee9bc08542f2 /chrome/browser/platform_util_mac.mm
parente8982947401fb01cfb944271d8defcec0104d224 (diff)
downloadchromium_src-f21cf2cfe34186333a591ee0788072889c2eaa3e.zip
chromium_src-f21cf2cfe34186333a591ee0788072889c2eaa3e.tar.gz
chromium_src-f21cf2cfe34186333a591ee0788072889c2eaa3e.tar.bz2
Revert 46101 - Make a new yes/no messagebox wrapper function, use it in the bookmark alert.
BUG=http://crbug.com/34481; http://crbug.com/40011 TEST=on Mac/ChromeOS, have at least 15 bookmarks on bookmarks bar or other bookmarks, right click on one of those and click on Open all bookmarks. An confirmation dialog box should be shown. No other visible change. Review URL: http://codereview.chromium.org/1687017 TBR=avi@chromium.org Review URL: http://codereview.chromium.org/1783014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46108 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/platform_util_mac.mm')
-rw-r--r--chrome/browser/platform_util_mac.mm21
1 files changed, 2 insertions, 19 deletions
diff --git a/chrome/browser/platform_util_mac.mm b/chrome/browser/platform_util_mac.mm
index 789059a..43d9582 100644
--- a/chrome/browser/platform_util_mac.mm
+++ b/chrome/browser/platform_util_mac.mm
@@ -59,31 +59,14 @@ bool IsVisible(gfx::NativeView view) {
void SimpleErrorBox(gfx::NativeWindow parent,
const string16& title,
const string16& message) {
- // 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 setMessageText:base::SysUTF16ToNSString(title)];
+ [alert setInformativeText:base::SysUTF16ToNSString(message)];
[alert setAlertStyle:NSWarningAlertStyle];
[alert runModal];
}
-bool SimpleYesNoBox(gfx::NativeWindow parent,
- const string16& title,
- const string16& message) {
- // Ignore the title; it's the window title on other platforms and ignorable.
- NSAlert* alert = [[[NSAlert alloc] init] autorelease];
- [alert setMessageText:base::SysUTF16ToNSString(message)];
- [alert setAlertStyle:NSWarningAlertStyle];
-
- [alert addButtonWithTitle:
- l10n_util::GetNSString(IDS_CONFIRM_MESSAGEBOX_YES_BUTTON_LABEL)];
- [alert addButtonWithTitle:
- l10n_util::GetNSString(IDS_CONFIRM_MESSAGEBOX_NO_BUTTON_LABEL)];
-
- NSInteger result = [alert runModal];
- return result == NSAlertFirstButtonReturn;
-}
-
string16 GetVersionStringModifier() {
#if defined(GOOGLE_CHROME_BUILD)
NSBundle* bundle = mac_util::MainAppBundle();