OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "ios/chrome/app/startup/ios_chrome_main_delegate.h" | 5 #include "ios/chrome/app/startup/ios_chrome_main_delegate.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ios/chrome/browser/chrome_paths.h" | 8 #include "ios/chrome/browser/chrome_paths.h" |
9 #include "third_party/skia/include/core/SkGraphics.h" | 9 #include "third_party/skia/include/core/SkGraphics.h" |
10 | 10 |
| 11 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 12 #error "This file requires ARC support." |
| 13 #endif |
| 14 |
11 IOSChromeMainDelegate::IOSChromeMainDelegate() {} | 15 IOSChromeMainDelegate::IOSChromeMainDelegate() {} |
12 | 16 |
13 IOSChromeMainDelegate::~IOSChromeMainDelegate() {} | 17 IOSChromeMainDelegate::~IOSChromeMainDelegate() {} |
14 | 18 |
15 void IOSChromeMainDelegate::BasicStartupComplete() { | 19 void IOSChromeMainDelegate::BasicStartupComplete() { |
16 // Initialize Skia. On desktop this is made by content::BrowserMainRunnerImpl, | 20 // Initialize Skia. On desktop this is made by content::BrowserMainRunnerImpl, |
17 // however web does not have a dependency on skia, so it is done as part of | 21 // however web does not have a dependency on skia, so it is done as part of |
18 // Chrome initialisation on iOS. | 22 // Chrome initialisation on iOS. |
19 SkGraphics::Init(); | 23 SkGraphics::Init(); |
20 | 24 |
21 // Initialize the Chrome path provider. | 25 // Initialize the Chrome path provider. |
22 ios::RegisterPathProvider(); | 26 ios::RegisterPathProvider(); |
23 | 27 |
24 // Upstream wires up log file handling here based on flags; for now that's | 28 // Upstream wires up log file handling here based on flags; for now that's |
25 // not supported, and this is called just to handle vlog levels and patterns. | 29 // not supported, and this is called just to handle vlog levels and patterns. |
26 // If redirecting to a file is ever needed, add it here (see | 30 // If redirecting to a file is ever needed, add it here (see |
27 // logging_chrome.cc for example code). | 31 // logging_chrome.cc for example code). |
28 logging::LoggingSettings log_settings; | 32 logging::LoggingSettings log_settings; |
29 logging::InitLogging(log_settings); | 33 logging::InitLogging(log_settings); |
30 } | 34 } |
OLD | NEW |