Index: mojo/services/html_viewer/html_document.cc |
diff --git a/mojo/services/html_viewer/html_document.cc b/mojo/services/html_viewer/html_document.cc |
index 1c9a00bc713a1b018f49d157de42463268b7a19a..eb9185e86f92cfa9975877dc7fa31dfe38fd07e3 100644 |
--- a/mojo/services/html_viewer/html_document.cc |
+++ b/mojo/services/html_viewer/html_document.cc |
@@ -101,6 +101,7 @@ HTMLDocument::HTMLDocument( |
exported_services_.AddService(this); |
exported_services_.AddService(&view_manager_client_factory_); |
WeakBindToPipe(&exported_services_, provider.PassMessagePipe()); |
+ Load(response_.Pass()); |
} |
HTMLDocument::~HTMLDocument() { |
@@ -121,8 +122,6 @@ void HTMLDocument::OnEmbed( |
embedder_service_provider_ = embedder_service_provider.Pass(); |
navigator_host_.set_service_provider(embedder_service_provider_.get()); |
- Load(response_.Pass()); |
- |
blink::WebSize root_size(root_->bounds().width, root_->bounds().height); |
web_view_->resize(root_size); |
web_layer_tree_view_impl_->setViewportSize(root_size); |