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

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

Issue 1153673005: Make Uri.base work in SkyView (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/dom_dart_state.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 4b041a046515aa62d6cd85ad5ba3ff0ac947e6ba..62665abac720fb4f9b15a720afb076927ac277ed 100644
--- a/sky/engine/core/script/dart_controller.cc
+++ b/sky/engine/core/script/dart_controller.cc
@@ -314,13 +314,13 @@ static void MessageNotifyCallback(Dart_Isolate dest_isolate) {
base::Bind(&CallHandleMessage, DartState::From(dest_isolate)->GetWeakPtr()));
}
-void DartController::CreateIsolateFor(PassOwnPtr<DOMDartState> state,
- const KURL& url) {
+void DartController::CreateIsolateFor(PassOwnPtr<DOMDartState> state) {
CHECK(kDartIsolateSnapshotBuffer);
char* error = nullptr;
dom_dart_state_ = state;
Dart_Isolate isolate = Dart_CreateIsolate(
- url.string().utf8().data(), "main", kDartIsolateSnapshotBuffer,
+ dom_dart_state_->url().string().utf8().data(), "main",
+ kDartIsolateSnapshotBuffer,
static_cast<DartState*>(dom_dart_state_.get()), &error);
Dart_SetMessageNotifyCallback(MessageNotifyCallback);
CHECK(isolate) << error;
« no previous file with comments | « sky/engine/core/script/dart_controller.h ('k') | sky/engine/core/script/dom_dart_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698