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

Unified Diff: mojo/services/html_viewer/html_document.cc

Issue 796963003: Move Load() from HTMLDocument::OnEmbed() to the constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698