summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilevy@chromium.org <ilevy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-19 02:21:07 +0000
committerilevy@chromium.org <ilevy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-19 02:21:07 +0000
commitf327f9184efb2cd32a0229a1a9c937919bcde76a (patch)
tree067b47eafcfac6a235a68238c35fcbf0c73618e9
parenta6948f9e9e6323d5325841862867e66a3a6f5f6e (diff)
downloadchromium_src-f327f9184efb2cd32a0229a1a9c937919bcde76a.zip
chromium_src-f327f9184efb2cd32a0229a1a9c937919bcde76a.tar.gz
chromium_src-f327f9184efb2cd32a0229a1a9c937919bcde76a.tar.bz2
Swap button order on mac restart alert
Switch the order of the buttons on the mac restart alert, which makes the default action 'Restart'. I believe this is justified since the dialog is only shown after the user clicks 'Update' in settings. BUG=None Review URL: https://codereview.chromium.org/57713002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264911 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/cocoa/restart_browser.mm8
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/ui/cocoa/restart_browser.mm b/chrome/browser/ui/cocoa/restart_browser.mm
index a265b68..891bfb8 100644
--- a/chrome/browser/ui/cocoa/restart_browser.mm
+++ b/chrome/browser/ui/cocoa/restart_browser.mm
@@ -39,9 +39,9 @@
returnCode:(int)returnCode
contextInfo:(void*)contextInfo {
if (returnCode == NSAlertFirstButtonReturn) {
- // Nothing to do. User will restart later.
- } else if (returnCode == NSAlertSecondButtonReturn) {
chrome::AttemptRestart();
+ } else if (returnCode == NSAlertSecondButtonReturn) {
+ // Nothing to do. User will restart later.
} else {
NOTREACHED();
}
@@ -59,7 +59,7 @@ void RequestRestart(NSWindow* parent) {
NSString* text =
l10n_util::GetNSStringFWithFixup(IDS_UPDATE_RECOMMENDED,
l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
- NSString* notNowButtin = l10n_util::GetNSStringWithFixup(IDS_NOT_NOW);
+ NSString* notNowButton = l10n_util::GetNSStringWithFixup(IDS_NOT_NOW);
NSString* restartButton =
l10n_util::GetNSStringWithFixup(IDS_RELAUNCH_AND_UPDATE);
@@ -69,8 +69,8 @@ void RequestRestart(NSWindow* parent) {
[alert setAlertStyle:NSInformationalAlertStyle];
[alert setMessageText:title];
[alert setInformativeText:text];
- [alert addButtonWithTitle:notNowButtin];
[alert addButtonWithTitle:restartButton];
+ [alert addButtonWithTitle:notNowButton];
if (parent) {
[alert beginSheetModalForWindow:parent