Index: ios/showcase/core/main.mm |
diff --git a/ios/showcase/core/main.mm b/ios/showcase/core/main.mm |
index ca3097d83ce30c1838e70e8b6893c18f1e8bc587..df9bee044c89a9db93ae49d6aa321a12d83f2b42 100644 |
--- a/ios/showcase/core/main.mm |
+++ b/ios/showcase/core/main.mm |
@@ -3,6 +3,8 @@ |
// found in the LICENSE file. |
#import <UIKit/UIKit.h> |
+ |
+#include "base/at_exit.h" |
#import "ios/showcase/core/app_delegate.h" |
#if !defined(__has_feature) || !__has_feature(objc_arc) |
@@ -10,6 +12,11 @@ |
#endif |
int main(int argc, char* argv[]) { |
+ // Create the AtExitManager for the application before the crash controller |
+ // 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.
|
+ // the app. |
+ base::AtExitManager at_exit; |
+ |
@autoreleasepool { |
return UIApplicationMain(argc, argv, nil, |
NSStringFromClass([AppDelegate class])); |