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

Side by Side 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 unified diff | Download patch
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698