Chromium Code Reviews| Index: third_party/WebKit/public/platform/Platform.h |
| diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h |
| index 708d13a5988ae19bc6b5876588d6952df00122d6..091d47d84d5cc2649a2747c79120616b00cba017 100644 |
| --- a/third_party/WebKit/public/platform/Platform.h |
| +++ b/third_party/WebKit/public/platform/Platform.h |
| @@ -141,6 +141,11 @@ class BLINK_PLATFORM_EXPORT Platform { |
| static void initialize(Platform*); |
| static void shutdown(); |
| static Platform* current(); |
| + // Used to get whether message loop is ready for current thread, to help |
| + // blink::initialize() determining whether can initialize mojo stuff or not. |
| + // TODO(leonhsl): http://crbug.com/660274 Remove this public API by ensuring |
| + // a message loop before calling blink::initialize(). |
| + static bool isMessageLoopReady(); |
|
kinuko
2016/11/08 03:22:56
(Putting aside the need of this method that seems
leonhsl(Using Gerrit)
2016/11/08 08:20:39
Yes the only user is Source/modules/ModulesInitial
|
| // Used to switch the current platform only for testing. |
| static void setCurrentPlatformForTesting(Platform*); |