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

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

Issue 1147413003: Teach sky_viewer about the new main.dart hotness (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Turn off SkyView by defaultw Created 5 years, 7 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.h ('k') | sky/engine/core/script/dart_loader.h » ('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 22fe4d38f73edbcdbfb7894bd28acb4e4ee61a31..083e19099bb397b77886de48009ddf4183eac2cb 100644
--- a/sky/engine/core/script/dart_controller.cc
+++ b/sky/engine/core/script/dart_controller.cc
@@ -120,10 +120,10 @@ void DartController::DidLoadMainLibrary(KURL url) {
DartInvokeAppField(library, ToDart("main"), 0, nullptr);
}
-void DartController::LoadMainLibrary(const KURL& url) {
+void DartController::LoadMainLibrary(const KURL& url, mojo::URLResponsePtr response) {
DartLoader& loader = dart_state()->loader();
DartDependencyCatcher dependency_catcher(loader);
- loader.LoadLibrary(url);
+ loader.LoadLibrary(url, response.Pass());
loader.WaitForDependencies(dependency_catcher.dependencies(),
base::Bind(&DartController::DidLoadMainLibrary, weak_factory_.GetWeakPtr(), url));
}
« no previous file with comments | « sky/engine/core/script/dart_controller.h ('k') | sky/engine/core/script/dart_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698