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

Unified Diff: ios/showcase/core/main.mm

Issue 2651833002: [ios showcase]Configures Resource Bundle and adds Toolbar Coordinator (Closed)
Patch Set: Removes Application State dependency Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
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]));

Powered by Google App Engine
This is Rietveld 408576698