OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <UIKit/UIKit.h> | 5 #import <UIKit/UIKit.h> |
6 | |
7 #include "base/at_exit.h" | |
6 #import "ios/showcase/core/app_delegate.h" | 8 #import "ios/showcase/core/app_delegate.h" |
7 | 9 |
8 #if !defined(__has_feature) || !__has_feature(objc_arc) | 10 #if !defined(__has_feature) || !__has_feature(objc_arc) |
9 #error "This file requires ARC support." | 11 #error "This file requires ARC support." |
10 #endif | 12 #endif |
11 | 13 |
12 int main(int argc, char* argv[]) { | 14 int main(int argc, char* argv[]) { |
15 // Create the AtExitManager for the application before the crash controller | |
16 // is started. This needs to be stack allocated and live for the lifetime of | |
lpromero
2017/01/25 08:07:30
Remove the comment about the crash controller.
sczs
2017/01/25 16:59:22
Done.
| |
17 // the app. | |
18 base::AtExitManager at_exit; | |
19 | |
13 @autoreleasepool { | 20 @autoreleasepool { |
14 return UIApplicationMain(argc, argv, nil, | 21 return UIApplicationMain(argc, argv, nil, |
15 NSStringFromClass([AppDelegate class])); | 22 NSStringFromClass([AppDelegate class])); |
16 } | 23 } |
17 } | 24 } |
OLD | NEW |