summaryrefslogtreecommitdiffstats
path: root/mojo/application/public/cpp/lib/application_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'mojo/application/public/cpp/lib/application_impl.cc')
-rw-r--r--mojo/application/public/cpp/lib/application_impl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/mojo/application/public/cpp/lib/application_impl.cc b/mojo/application/public/cpp/lib/application_impl.cc
index 564c773..8473a63 100644
--- a/mojo/application/public/cpp/lib/application_impl.cc
+++ b/mojo/application/public/cpp/lib/application_impl.cc
@@ -33,7 +33,8 @@ ApplicationImpl::ApplicationImpl(ApplicationDelegate* delegate,
const base::Closure& termination_closure)
: delegate_(delegate),
binding_(this, request.Pass()),
- termination_closure_(termination_closure) {
+ termination_closure_(termination_closure),
+ app_lifetime_helper_(this) {
}
void ApplicationImpl::ClearConnections() {
@@ -51,6 +52,7 @@ void ApplicationImpl::ClearConnections() {
ApplicationImpl::~ApplicationImpl() {
ClearConnections();
+ app_lifetime_helper_.ApplicationTerminated();
}
ApplicationConnection* ApplicationImpl::ConnectToApplication(