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

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

Issue 952273003: Make WebView::close not crash and start to fix navigation in SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fixed 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
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 8e2a0608438e8157d3f1b58a3e1e9f1870078904..b440d420dd189d7a0b181b334a1b4b7520447089 100644
--- a/sky/engine/core/script/dart_controller.cc
+++ b/sky/engine/core/script/dart_controller.cc
@@ -284,7 +284,8 @@ void DartController::CreateIsolateFor(Document* document) {
}
void DartController::ClearForClose() {
- DartIsolateScope scope(dom_dart_state_->isolate());
+ // Don't use a DartIsolateScope here since we never exit the isolate.
+ Dart_EnterIsolate(dom_dart_state_->isolate());
Dart_ShutdownIsolate();
dom_dart_state_.clear();
}
« no previous file with comments | « sky/engine/core/editing/FrameSelection.cpp ('k') | sky/services/oknet/src/org/domokit/oknet/UrlLoaderImpl.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698