Index: chrome/app/mash/mash_runner.cc |
diff --git a/chrome/app/mash/mash_runner.cc b/chrome/app/mash/mash_runner.cc |
index 9c14e731f709ac6b513efa181e00b63c28d5fc2a..d5086ec61003d95db27dc5df9b8bf95cdd6fc551 100644 |
--- a/chrome/app/mash/mash_runner.cc |
+++ b/chrome/app/mash/mash_runner.cc |
@@ -237,8 +237,8 @@ void MashRunner::StartChildApp( |
service_manager::ServiceContext context( |
base::MakeUnique<mash::MashPackagedService>(), |
std::move(service_request)); |
- // Quit the child process if it loses its connection to service manager. |
- context.SetConnectionLostClosure(run_loop.QuitClosure()); |
+ // Quit the child process when the service quits. |
+ context.SetQuitClosure(run_loop.QuitClosure()); |
run_loop.Run(); |
// |context| must be destroyed before |message_loop|. |
} |