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

Unified Diff: components/view_manager/public/cpp/lib/view_manager_init.cc

Issue 1139673003: Make Mandoline shut down cleanly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 months 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
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..4fe0cebfc83d301aed84440525fd790b97cde11b 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
« no previous file with comments | « components/surfaces/surfaces_service_application.cc ('k') | components/view_manager/public/cpp/view_manager_init.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698