OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #import "chrome/browser/ui/cocoa/restart_browser.h" | 5 #import "chrome/browser/ui/cocoa/restart_browser.h" |
6 | 6 |
7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
8 #include "chrome/browser/lifetime/application_lifetime.h" | 8 #include "chrome/browser/lifetime/application_lifetime.h" |
9 #include "chrome/grit/chromium_strings.h" | 9 #include "chrome/grit/chromium_strings.h" |
10 #include "chrome/grit/generated_resources.h" | 10 #include "chrome/grit/generated_resources.h" |
11 #include "grit/components_strings.h" | 11 #include "components/strings/grit/components_strings.h" |
12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
13 #include "ui/base/l10n/l10n_util_mac.h" | 13 #include "ui/base/l10n/l10n_util_mac.h" |
14 | 14 |
15 // Helper to clean up after the notification that the alert was dismissed. | 15 // Helper to clean up after the notification that the alert was dismissed. |
16 @interface RestartHelper : NSObject { | 16 @interface RestartHelper : NSObject { |
17 @private | 17 @private |
18 NSAlert* alert_; | 18 NSAlert* alert_; |
19 } | 19 } |
20 - (NSAlert*)alert; | 20 - (NSAlert*)alert; |
21 - (void)alertDidEnd:(NSAlert*)alert | 21 - (void)alertDidEnd:(NSAlert*)alert |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 contextInfo:nil]; | 81 contextInfo:nil]; |
82 } else { | 82 } else { |
83 NSInteger returnCode = [alert runModal]; | 83 NSInteger returnCode = [alert runModal]; |
84 [helper alertDidEnd:alert | 84 [helper alertDidEnd:alert |
85 returnCode:returnCode | 85 returnCode:returnCode |
86 contextInfo:NULL]; | 86 contextInfo:NULL]; |
87 } | 87 } |
88 } | 88 } |
89 | 89 |
90 } // namespace restart_browser | 90 } // namespace restart_browser |
OLD | NEW |