Chromium Code Reviews| Index: sky/engine/public/sky/sky_view.cc |
| diff --git a/sky/engine/public/sky/sky_view.cc b/sky/engine/public/sky/sky_view.cc |
| index 45edf46a2737ae170f96551a30a07ea01a624c3a..a17c520a6f54d681ca108484d5516a3d1dfed7a9 100644 |
| --- a/sky/engine/public/sky/sky_view.cc |
| +++ b/sky/engine/public/sky/sky_view.cc |
| @@ -55,6 +55,14 @@ void SkyView::Load(const WebURL& url, mojo::URLResponsePtr response) { |
| dart_controller_.reset(new DartController); |
| dart_controller_->CreateIsolateFor(adoptPtr(new DOMDartState(nullptr)), url); |
| dart_controller_->InstallView(data_->view_.get()); |
| + |
| + { |
| + Dart_Isolate isolate = dart_controller_->dart_state()->isolate(); |
| + DartIsolateScope scope(isolate); |
| + DartApiScope api_scope; |
| + client_->DidCreateIsolate(isolate); |
| + } |
|
abarth-chromium
2015/05/27 02:19:03
I probably would have moved this to a new (private
|
| + |
| dart_controller_->LoadMainLibrary(url, response.Pass()); |
| } |