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

Unified Diff: tools/dom/scripts/generate_blink_file.py

Issue 2626643003: Fixed checked mode error for resolvePackageUri. (Closed)
Patch Set: Fixed checked mode error Created 3 years, 11 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 | « sdk/lib/_blink/dartium/_blink_dartium.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/generate_blink_file.py
diff --git a/tools/dom/scripts/generate_blink_file.py b/tools/dom/scripts/generate_blink_file.py
index 85393a52ae5bc07cf3668c803cffedf086f8bfe8..2b119ed268fb64f4c50883816b5b943ba759defa 100644
--- a/tools/dom/scripts/generate_blink_file.py
+++ b/tools/dom/scripts/generate_blink_file.py
@@ -96,6 +96,7 @@ HEADER = """/* Copyright (c) 2014, the Dart project authors. Please see the AUT
*/
library dart.dom._blink;
+import 'dart:async';
import 'dart:js' as js;
import 'dart:html' show DomException;
import 'dart:_internal' as internal;
@@ -130,8 +131,11 @@ class Blink_Utils {
// Below code sets up VMLibraryHooks for resolvePackageUri.
static Uri resolvePackageUri(Uri packageUri) native "Utils_resolvePackageUri";
+ static Future<Uri> _resolvePackageUriFuture(Uri packageUri) async {
+ return resolvePackageUri(packageUri);
+ }
static void _setupHooks() {
- internal.VMLibraryHooks.resolvePackageUriFuture = resolvePackageUri;
+ internal.VMLibraryHooks.resolvePackageUriFuture = _resolvePackageUriFuture;
}
// Defines an interceptor if there is an appropriate JavaScript prototype to define it on.
« no previous file with comments | « sdk/lib/_blink/dartium/_blink_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698