| Index: mojo/examples/html_viewer/html_viewer.cc
|
| diff --git a/mojo/examples/html_viewer/html_viewer.cc b/mojo/examples/html_viewer/html_viewer.cc
|
| index 235d4ab28629656a58f65661eeb4d83f811c9f9a..7cdbb12b75355dad2db0420520bdbbc8446a809b 100644
|
| --- a/mojo/examples/html_viewer/html_viewer.cc
|
| +++ b/mojo/examples/html_viewer/html_viewer.cc
|
| @@ -2,6 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include "base/message_loop/message_loop.h"
|
| #include "mojo/examples/html_viewer/blink_platform_impl.h"
|
| #include "mojo/examples/html_viewer/html_document_view.h"
|
| #include "mojo/public/cpp/application/application_connection.h"
|
| @@ -79,6 +80,10 @@ class HTMLViewer : public ApplicationDelegate,
|
| document_view_->AttachToNode(root);
|
| MaybeLoad();
|
| }
|
| + virtual void OnViewManagerDisconnected(
|
| + view_manager::ViewManager* view_manager) OVERRIDE {
|
| + base::MessageLoop::current()->Quit();
|
| + }
|
|
|
| void MaybeLoad() {
|
| if (document_view_ && response_.get())
|
|
|