| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |