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

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

Issue 2651833002: [ios showcase]Configures Resource Bundle and adds Toolbar Coordinator (Closed)
Patch Set: Rebase 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
« no previous file with comments | « ios/showcase/core/app_delegate.mm ('k') | ios/showcase/core/showcase_model.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/showcase/core/main.mm
diff --git a/ios/showcase/core/main.mm b/ios/showcase/core/main.mm
index ca3097d83ce30c1838e70e8b6893c18f1e8bc587..89c2c69ffa4397463db2901a6acfba7be65101b3 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,10 @@
#endif
int main(int argc, char* argv[]) {
+ // This needs to be stack allocated and live for the lifetime of
+ // the app.
+ base::AtExitManager at_exit;
+
@autoreleasepool {
return UIApplicationMain(argc, argv, nil,
NSStringFromClass([AppDelegate class]));
« no previous file with comments | « ios/showcase/core/app_delegate.mm ('k') | ios/showcase/core/showcase_model.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698