Chromium Code Reviews| 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()) |
|
blundell
2016/10/18 12:32:11
I see, this is why you have initializeMojo() be sa
blundell
2016/10/18 12:32:11
Nit: It seems like you don't need to add Platform:
leonhsl(Using Gerrit)
2016/10/18 14:34:48
Acknowledged.
leonhsl(Using Gerrit)
2016/10/18 14:34:48
I tried (platform->currentThread()) before, and tu
haraken
2016/10/18 19:39:11
I think Platform::currentThread() should work. Wou
leonhsl(Using Gerrit)
2016/10/19 08:47:23
content::TestBlinkWebUnitTestSupport is an impl of
|
| + 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(); |