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

Unified Diff: sky/engine/bindings/dart_io.cc

Issue 1107803002: Add Observatory to sky dart_controller (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
Index: sky/engine/bindings/dart_io.cc
diff --git a/sky/engine/tonic/dart_class_provider.cc b/sky/engine/bindings/dart_io.cc
similarity index 50%
copy from sky/engine/tonic/dart_class_provider.cc
copy to sky/engine/bindings/dart_io.cc
index 70ce8541f3a45e5e20e2339bef186f0fb75110ae..df92aa42ff9306a9cd5098bf5dccf283d4ab3374 100644
--- a/sky/engine/tonic/dart_class_provider.cc
+++ b/sky/engine/bindings/dart_io.cc
@@ -2,12 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sky/engine/config.h"
-#include "sky/engine/tonic/dart_class_provider.h"
+#include "dart_io.h"
+
+#include "bin/eventhandler.h"
+#include "bin/thread.h"
namespace blink {
-DartClassProvider::~DartClassProvider() {
+void BootstrapDartIo() {
+ // Bootstrap 'dart:io' event handler.
+ dart::bin::Thread::InitOnce();
+ dart::bin::EventHandler::Start();
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698