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

Unified Diff: third_party/WebKit/Source/web/WebKit.cpp

Issue 2402983002: [TimeZoneMonitor] Decouple renderer side impl from content to blink. (Closed)
Patch Set: webkit_unit_tests does not need to init mojo edk any more by itself Created 4 years, 2 months 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
Index: third_party/WebKit/Source/web/WebKit.cpp
diff --git a/third_party/WebKit/Source/web/WebKit.cpp b/third_party/WebKit/Source/web/WebKit.cpp
index f32df4dfb71b7c477d397c31330b30e5a1b087a8..fc88a2a83f405e52669be20614fda45b15600679 100644
--- a/third_party/WebKit/Source/web/WebKit.cpp
+++ b/third_party/WebKit/Source/web/WebKit.cpp
@@ -82,6 +82,9 @@ void initialize(Platform* platform) {
modulesInitializer().initialize();
+ if (Platform::isMessageLoopReady())
+ initializeMojo();
+
// currentThread is null if we are running on a thread without a message loop.
if (WebThread* currentThread = platform->currentThread()) {
DCHECK(!s_endOfTaskRunner);
@@ -90,6 +93,10 @@ void initialize(Platform* platform) {
}
}
+void initializeMojo() {
+ modulesInitializer().initializeMojo();
+}
+
void shutdown() {
ThreadState::current()->cleanupMainThread();

Powered by Google App Engine
This is Rietveld 408576698