Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: chrome/browser/cocoa/restart_browser.mm

Issue 338012: About box auto-update improvements (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/cocoa/about_window_controller_unittest.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "app/l10n_util_mac.h" 5 #include "app/l10n_util_mac.h"
6 #import "chrome/browser/cocoa/restart_browser.h" 6 #import "chrome/browser/cocoa/restart_browser.h"
7 #include "grit/chromium_strings.h" 7 #include "grit/chromium_strings.h"
8 #include "grit/generated_resources.h" 8 #include "grit/generated_resources.h"
9 #include "grit/app_strings.h" 9 #include "grit/app_strings.h"
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 NSString* title = 46 NSString* title =
47 l10n_util::GetNSStringFWithFixup(IDS_PLEASE_RESTART_BROWSER, 47 l10n_util::GetNSStringFWithFixup(IDS_PLEASE_RESTART_BROWSER,
48 l10n_util::GetStringUTF16(IDS_PRODUCT_NAM E)); 48 l10n_util::GetStringUTF16(IDS_PRODUCT_NAM E));
49 NSString* text = 49 NSString* text =
50 l10n_util::GetNSStringWithFixup(IDS_OPTIONS_RESTART_REQUIRED); 50 l10n_util::GetNSStringWithFixup(IDS_OPTIONS_RESTART_REQUIRED);
51 NSString* okBtn = l10n_util::GetNSStringWithFixup(IDS_APP_OK); 51 NSString* okBtn = l10n_util::GetNSStringWithFixup(IDS_APP_OK);
52 52
53 RestartHelper* helper = [[RestartHelper alloc] init]; 53 RestartHelper* helper = [[RestartHelper alloc] init];
54 54
55 NSAlert* alert = [helper alert]; 55 NSAlert* alert = [helper alert];
56 [alert setAlertStyle:NSCriticalAlertStyle]; 56 [alert setAlertStyle:NSInformationalAlertStyle];
57 [alert setMessageText:title]; 57 [alert setMessageText:title];
58 [alert setInformativeText:text]; 58 [alert setInformativeText:text];
59 [alert addButtonWithTitle:okBtn]; 59 [alert addButtonWithTitle:okBtn];
60 60
61 [alert beginSheetModalForWindow:parent 61 [alert beginSheetModalForWindow:parent
62 modalDelegate:helper 62 modalDelegate:helper
63 didEndSelector:@selector(alertDidEnd:returnCode:contextInfo:) 63 didEndSelector:@selector(alertDidEnd:returnCode:contextInfo:)
64 contextInfo:nil]; 64 contextInfo:nil];
65 } 65 }
66 66
67 } // namespace restart_browser 67 } // namespace restart_browser
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/about_window_controller_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698