| Index: sky/shell/sky_main.cc
|
| diff --git a/sky/shell/sky_main.cc b/sky/shell/sky_main.cc
|
| index 4a10ab0df3f30fa1a575c62db55b7bb00e1d116f..ae8aa16e8eacf8c8ccf940b4aa4f8ec3180d6151 100644
|
| --- a/sky/shell/sky_main.cc
|
| +++ b/sky/shell/sky_main.cc
|
| @@ -17,6 +17,8 @@
|
| #include "base/message_loop/message_loop.h"
|
| #include "base/run_loop.h"
|
| #include "base/threading/simple_thread.h"
|
| +#include "bin/eventhandler.h"
|
| +#include "bin/thread.h"
|
| #include "jni/SkyMain_jni.h"
|
| #include "sky/shell/shell.h"
|
| #include "ui/gl/gl_surface_egl.h"
|
| @@ -51,6 +53,10 @@ static void Init(JNIEnv* env, jclass clazz, jobject context) {
|
| base::CommandLine::Init(0, nullptr);
|
| InitializeLogging();
|
|
|
| + // Bootstrap 'dart:io' event handler.
|
| + dart::bin::Thread::InitOnce();
|
| + dart::bin::EventHandler::Start();
|
| +
|
| g_java_message_loop.Get().reset(new base::MessageLoopForUI);
|
| base::MessageLoopForUI::current()->Start();
|
|
|
|
|