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

Unified Diff: sky/engine/core/script/dart_controller.cc

Issue 1027603002: Dart: Removes all but native calls and the handle watcher from the snapshot. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Hoist application interface dependence Created 5 years, 9 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
« no previous file with comments | « sky/engine/bindings/snapshot.dart ('k') | sky/framework/embedder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/script/dart_controller.cc
diff --git a/sky/engine/core/script/dart_controller.cc b/sky/engine/core/script/dart_controller.cc
index bc642fd430d768e79d0108139570cd0c0b18caef..cf94635f049292ab00fd943ca309e862bd07a688 100644
--- a/sky/engine/core/script/dart_controller.cc
+++ b/sky/engine/core/script/dart_controller.cc
@@ -199,7 +199,7 @@ static Dart_Isolate IsolateCreateCallback(const char* script_uri,
{
DartApiScope apiScope;
Builtin::SetNativeResolver(Builtin::kBuiltinLibrary);
- Builtin::SetNativeResolver(Builtin::kMojoCoreLibrary);
+ Builtin::SetNativeResolver(Builtin::kMojoInternalLibrary);
}
Dart_ExitIsolate();
@@ -231,7 +231,7 @@ static void EnsureHandleWatcherStarted() {
// TODO(dart): Call Dart_Cleanup (ensure the handle watcher isolate is closed)
// during shutdown.
Dart_Handle mojo_core_lib =
- Builtin::LoadAndCheckLibrary(Builtin::kMojoCoreLibrary);
+ Builtin::LoadAndCheckLibrary(Builtin::kMojoInternalLibrary);
CHECK(!LogIfError((mojo_core_lib)));
Dart_Handle handle_watcher_type = Dart_GetType(
mojo_core_lib,
@@ -268,7 +268,7 @@ void DartController::CreateIsolateFor(Document* document) {
DartApiScope apiScope;
Builtin::SetNativeResolver(Builtin::kBuiltinLibrary);
- Builtin::SetNativeResolver(Builtin::kMojoCoreLibrary);
+ Builtin::SetNativeResolver(Builtin::kMojoInternalLibrary);
BuiltinNatives::Init();
builtin_sky_ = adoptPtr(new BuiltinSky(dart_state()));
« no previous file with comments | « sky/engine/bindings/snapshot.dart ('k') | sky/framework/embedder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698