Commit a99b7ad2 authored by qsr's avatar qsr Committed by Commit bot

mojo: Fix html_viewer.

R=aa@chromium.org

Review URL: https://codereview.chromium.org/699123003

Cr-Commit-Position: refs/heads/master@{#302618}
parent 988a9bb5
......@@ -89,14 +89,15 @@ HTMLDocumentView::HTMLDocumentView(
ShellPtr shell,
scoped_refptr<base::MessageLoopProxy> compositor_thread,
WebMediaPlayerFactory* web_media_player_factory)
: shell_(shell.Pass()),
: response_(response.Pass()),
shell_(shell.Pass()),
web_view_(NULL),
root_(NULL),
view_manager_client_factory_(shell_.get(), this),
compositor_thread_(compositor_thread),
web_media_player_factory_(web_media_player_factory),
weak_factory_(this) {
Load(response.Pass());
shell_.set_client(this);
}
HTMLDocumentView::~HTMLDocumentView() {
......@@ -110,6 +111,7 @@ void HTMLDocumentView::AcceptConnection(const String& requestor_url,
ServiceProviderPtr provider) {
exported_services_.AddService(&view_manager_client_factory_);
WeakBindToPipe(&exported_services_, provider.PassMessagePipe());
Load(response_.Pass());
}
void HTMLDocumentView::Initialize(Array<String> args) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment