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

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

Issue 938623005: Allow multiple dart <script> tags in .sky files (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Update test results 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/core/script/dart_controller.cc ('k') | sky/tests/modules/dart-imports-loader-interaction.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/script/dart_loader.cc
diff --git a/sky/engine/core/script/dart_loader.cc b/sky/engine/core/script/dart_loader.cc
index cc5fc195d48a40290ecc1ba5770012e61cc16745..d3d0bd44a9e5275ca15906914b9f04e5d5c408db 100644
--- a/sky/engine/core/script/dart_loader.cc
+++ b/sky/engine/core/script/dart_loader.cc
@@ -207,6 +207,8 @@ Dart_Handle DartLoader::HandleLibraryTag(Dart_LibraryTag tag,
void DartLoader::WaitForDependencies(
const HashSet<DartDependency*>& dependencies,
const base::Closure& callback) {
+ if (dependencies.isEmpty())
+ return callback.Run();
dependency_watchers_.add(
adoptPtr(new DependencyWatcher(dependencies, callback)));
}
« no previous file with comments | « sky/engine/core/script/dart_controller.cc ('k') | sky/tests/modules/dart-imports-loader-interaction.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698