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

Unified Diff: sky/engine/bindings2/builtin_natives.cc

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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/bindings2/builtin.cc ('k') | sky/engine/bindings2/dart_callback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings2/builtin_natives.cc
diff --git a/sky/engine/bindings2/builtin_natives.cc b/sky/engine/bindings2/builtin_natives.cc
index 2e890063f0dab8127422848193a7a8b2d238aadf..287b969f40dbb2c6a5097fd68e3ad833c9238610 100644
--- a/sky/engine/bindings2/builtin_natives.cc
+++ b/sky/engine/bindings2/builtin_natives.cc
@@ -17,6 +17,7 @@
#include "sky/engine/core/dom/Microtask.h"
#include "sky/engine/core/script/dom_dart_state.h"
#include "sky/engine/tonic/dart_api_scope.h"
+#include "sky/engine/tonic/dart_builtin.h"
#include "sky/engine/tonic/dart_error.h"
#include "sky/engine/tonic/dart_isolate_scope.h"
#include "sky/engine/tonic/dart_state.h"
@@ -88,7 +89,7 @@ static void InitDartInternal(Dart_Handle builtin_library) {
Dart_Handle print = GetClosure(builtin_library, "_getPrintClosure");
Dart_Handle timer = GetClosure(builtin_library, "_getCreateTimerClosure");
- Dart_Handle internal_library = DartBuiltin::LookupLibrary("dart:_internal")
+ Dart_Handle internal_library = DartBuiltin::LookupLibrary("dart:_internal");
DART_CHECK_VALID(Dart_SetField(
internal_library, ToDart("_printClosure"), print));
@@ -103,7 +104,7 @@ static void InitDartInternal(Dart_Handle builtin_library) {
static void InitAsync(Dart_Handle builtin_library) {
Dart_Handle schedule_microtask =
GetClosure(builtin_library, "_getScheduleMicrotaskClosure");
- Dart_Handle internal_library = DartBuiltin::LookupLibrary("dart:async")
+ Dart_Handle async_library = DartBuiltin::LookupLibrary("dart:async");
Dart_Handle set_schedule_microtask = ToDart("_setScheduleImmediateClosure");
DART_CHECK_VALID(Dart_Invoke(async_library, set_schedule_microtask, 1,
&schedule_microtask));
« no previous file with comments | « sky/engine/bindings2/builtin.cc ('k') | sky/engine/bindings2/dart_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698