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(); |