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

Unified Diff: mash/app_driver/app_driver.cc

Issue 2209943002: Eliminate outgoing InterfaceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tracing
Patch Set: . Created 4 years, 4 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
« no previous file with comments | « ash/mus/window_manager_application.cc ('k') | mash/init/init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/app_driver/app_driver.cc
diff --git a/mash/app_driver/app_driver.cc b/mash/app_driver/app_driver.cc
index b06b25863ed8c456bc48d164d06c8deafef27a63..19de4875d0cbb29437f3985a40c2b531f971812b 100644
--- a/mash/app_driver/app_driver.cc
+++ b/mash/app_driver/app_driver.cc
@@ -97,7 +97,8 @@ bool AppDriver::OnConnect(shell::Connection* connection) {
bool AppDriver::OnStop() {
// Prevent the code in AddAccelerators() from keeping this app alive.
- binding_.set_connection_error_handler(base::Bind(&DoNothing));
+ if (binding_.is_bound())
+ binding_.set_connection_error_handler(base::Bind(&DoNothing));
return true;
}
« no previous file with comments | « ash/mus/window_manager_application.cc ('k') | mash/init/init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698