Index: mash/browser_driver/browser_driver_application_delegate.cc |
diff --git a/mash/browser_driver/browser_driver_application_delegate.cc b/mash/browser_driver/browser_driver_application_delegate.cc |
index cc6bbdcefae08f176cd4d7173104f01f1c72224c..d30225ec8d1c58710c000c14fa23c7d7a4250a8d 100644 |
--- a/mash/browser_driver/browser_driver_application_delegate.cc |
+++ b/mash/browser_driver/browser_driver_application_delegate.cc |
@@ -67,10 +67,10 @@ |
return true; |
} |
-bool BrowserDriverApplicationDelegate::ShellConnectionLost() { |
+void BrowserDriverApplicationDelegate::ShellConnectionLost() { |
// Prevent the code in AddAccelerators() from keeping this app alive. |
binding_.set_connection_error_handler(base::Bind(&DoNothing)); |
- return true; |
+ base::MessageLoop::current()->QuitWhenIdle(); |
} |
void BrowserDriverApplicationDelegate::OnAccelerator( |