OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ios/chrome/app/startup/ios_chrome_main_delegate.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "ios/chrome/browser/chrome_paths.h" |
| 9 #include "third_party/skia/include/core/SkGraphics.h" |
| 10 |
| 11 IOSChromeMainDelegate::IOSChromeMainDelegate() {} |
| 12 |
| 13 IOSChromeMainDelegate::~IOSChromeMainDelegate() {} |
| 14 |
| 15 void IOSChromeMainDelegate::BasicStartupComplete() { |
| 16 // 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 |
| 18 // Chrome initialisation on iOS. |
| 19 SkGraphics::Init(); |
| 20 |
| 21 // Initialize the Chrome path provider. |
| 22 ios::RegisterPathProvider(); |
| 23 |
| 24 // 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. |
| 26 // If redirecting to a file is ever needed, add it here (see |
| 27 // logging_chrome.cc for example code). |
| 28 logging::LoggingSettings log_settings; |
| 29 logging::InitLogging(log_settings); |
| 30 } |
OLD | NEW |