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 // ====== New Architecture ===== | 5 // ====== New Architecture ===== |
6 // = This code is only used in the new iOS Chrome architecture. = | 6 // = This code is only used in the new iOS Chrome architecture. = |
7 // ============================================================================ | 7 // ============================================================================ |
8 | 8 |
9 #import <UIKit/UIKit.h> | 9 #import <UIKit/UIKit.h> |
10 | 10 |
11 #include "base/at_exit.h" | 11 #include "base/at_exit.h" |
12 #include "base/debug/crash_logging.h" | 12 #include "base/debug/crash_logging.h" |
13 #include "components/crash/core/common/crash_keys.h" | 13 #include "components/crash/core/common/crash_keys.h" |
14 #include "ios/chrome/app/app_delegate.h" | |
15 #include "ios/chrome/app/startup/ios_chrome_main.h" | 14 #include "ios/chrome/app/startup/ios_chrome_main.h" |
16 #include "ios/chrome/browser/crash_report/breakpad_helper.h" | 15 #include "ios/chrome/browser/crash_report/breakpad_helper.h" |
17 #include "ios/chrome/browser/crash_report/crash_keys.h" | 16 #include "ios/chrome/browser/crash_report/crash_keys.h" |
18 #include "ios/chrome/common/channel_info.h" | 17 #include "ios/chrome/common/channel_info.h" |
| 18 #include "ios/clean/chrome/app/app_delegate.h" |
19 | 19 |
20 #if !defined(__has_feature) || !__has_feature(objc_arc) | 20 #if !defined(__has_feature) || !__has_feature(objc_arc) |
21 #error "This file requires ARC support." | 21 #error "This file requires ARC support." |
22 #endif | 22 #endif |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 void StartCrashController() { | 26 void StartCrashController() { |
27 std::string channel_string = GetChannelString(); | 27 std::string channel_string = GetChannelString(); |
28 | 28 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // Always ignore SIGPIPE. Chrome should always check the return value of | 63 // Always ignore SIGPIPE. Chrome should always check the return value of |
64 // write() instead of relying on this signal. | 64 // write() instead of relying on this signal. |
65 CHECK_NE(SIG_ERR, signal(SIGPIPE, SIG_IGN)); | 65 CHECK_NE(SIG_ERR, signal(SIGPIPE, SIG_IGN)); |
66 } | 66 } |
67 | 67 |
68 @autoreleasepool { | 68 @autoreleasepool { |
69 return UIApplicationMain(argc, argv, nil, | 69 return UIApplicationMain(argc, argv, nil, |
70 NSStringFromClass([AppDelegate class])); | 70 NSStringFromClass([AppDelegate class])); |
71 } | 71 } |
72 } | 72 } |
OLD | NEW |