| Index: ios/chrome/app/startup/ios_chrome_main_delegate.mm
|
| diff --git a/ios/chrome/app/startup/ios_chrome_main_delegate.mm b/ios/chrome/app/startup/ios_chrome_main_delegate.mm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2ee0e0bcc891b9cd7d03951d70cb8ca528e04a09
|
| --- /dev/null
|
| +++ b/ios/chrome/app/startup/ios_chrome_main_delegate.mm
|
| @@ -0,0 +1,30 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "ios/chrome/app/startup/ios_chrome_main_delegate.h"
|
| +
|
| +#include "base/logging.h"
|
| +#include "ios/chrome/browser/chrome_paths.h"
|
| +#include "third_party/skia/include/core/SkGraphics.h"
|
| +
|
| +IOSChromeMainDelegate::IOSChromeMainDelegate() {}
|
| +
|
| +IOSChromeMainDelegate::~IOSChromeMainDelegate() {}
|
| +
|
| +void IOSChromeMainDelegate::BasicStartupComplete() {
|
| + // Initialize Skia. On desktop this is made by content::BrowserMainRunnerImpl,
|
| + // however web does not have a dependency on skia, so it is done as part of
|
| + // Chrome initialisation on iOS.
|
| + SkGraphics::Init();
|
| +
|
| + // Initialize the Chrome path provider.
|
| + ios::RegisterPathProvider();
|
| +
|
| + // Upstream wires up log file handling here based on flags; for now that's
|
| + // not supported, and this is called just to handle vlog levels and patterns.
|
| + // If redirecting to a file is ever needed, add it here (see
|
| + // logging_chrome.cc for example code).
|
| + logging::LoggingSettings log_settings;
|
| + logging::InitLogging(log_settings);
|
| +}
|
|
|