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

Unified Diff: sky/shell/sky_main.cc

Issue 1107803002: Add Observatory to sky dart_controller (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
« sky/engine/bindings/BUILD.gn ('K') | « sky/shell/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« sky/engine/bindings/BUILD.gn ('K') | « sky/shell/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698