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

Unified Diff: ios/chrome/app/startup/ios_chrome_main_delegate.mm

Issue 2580363002: Upstream Chrome on iOS source code [1/11]. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/app/startup/ios_chrome_main_delegate.h ('k') | ios/chrome/app/startup/network_stack_setup.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+}
« no previous file with comments | « ios/chrome/app/startup/ios_chrome_main_delegate.h ('k') | ios/chrome/app/startup/network_stack_setup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698