| Index: components/view_manager/public/cpp/lib/view_manager_init.cc
|
| diff --git a/components/view_manager/public/cpp/lib/view_manager_init.cc b/components/view_manager/public/cpp/lib/view_manager_init.cc
|
| index 669cdb9dde45f12b89959678aa4a3678561e4077..965bcfce9cd95e76dfd51021d2ae6267aed486b2 100644
|
| --- a/components/view_manager/public/cpp/lib/view_manager_init.cc
|
| +++ b/components/view_manager/public/cpp/lib/view_manager_init.cc
|
| @@ -35,6 +35,7 @@ ViewManagerInit::ViewManagerInit(ApplicationImpl* app,
|
| app_->ConnectToApplication("mojo:view_manager");
|
| connection->AddService(client_factory_.get());
|
| connection->ConnectToService(&service_);
|
| + service_.set_error_handler(this);
|
| connection->ConnectToService(&view_manager_root_);
|
| if (root_client) {
|
| root_client_binding_.reset(new Binding<ViewManagerRootClient>(root_client));
|
| @@ -55,4 +56,8 @@ void ViewManagerInit::OnCreate(InterfaceRequest<ViewManagerClient> request) {
|
| client->SetViewManagerService(service_.Pass());
|
| }
|
|
|
| +void ViewManagerInit::OnConnectionError() {
|
| + mojo::ApplicationImpl::Terminate();
|
| +}
|
| +
|
| } // namespace mojo
|
|
|