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

Unified Diff: runtime/lib/deferred_load_patch.dart

Issue 14070010: Refactor Future constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added co19 issue number. Created 7 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
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | samples/tests/samples/lib/layout/layout_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/deferred_load_patch.dart
diff --git a/runtime/lib/deferred_load_patch.dart b/runtime/lib/deferred_load_patch.dart
index 8d0a9ff0495e57d1d6bc90a04ab5dd216f84cd10..2bd002708d8eeb1982496c561dfb056e10c08884 100644
--- a/runtime/lib/deferred_load_patch.dart
+++ b/runtime/lib/deferred_load_patch.dart
@@ -9,7 +9,7 @@ patch class DeferredLibrary {
// Dummy implementation that should eventually be replaced by real
// implementation.
Future future =
- new Future<bool>.immediate(!_loadedLibraries.contains(libraryName));
+ new Future<bool>.value(!_loadedLibraries.contains(libraryName));
_loadedLibraries.add(libraryName);
return future;
}
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | samples/tests/samples/lib/layout/layout_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698