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

Unified Diff: mojo/application/public/cpp/lib/application_runner.cc

Issue 1195003002: Mandoline: Introduce ApplicationConnection::CloseConnection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typo Created 5 years, 6 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: mojo/application/public/cpp/lib/application_runner.cc
diff --git a/mojo/application/public/cpp/lib/application_runner.cc b/mojo/application/public/cpp/lib/application_runner.cc
index cacead23697f79688573acad0cccc78345b8d5ef..19c38793d05f5472f8d95c49d4603e13a44b770d 100644
--- a/mojo/application/public/cpp/lib/application_runner.cc
+++ b/mojo/application/public/cpp/lib/application_runner.cc
@@ -68,6 +68,9 @@ MojoResult ApplicationRunner::Run(MojoHandle application_request_handle,
// connection error handlers and they might access objects created by the
// delegate.
loop.reset();
+ // Give |impl| an opportunity to perform some cleanup prior to destruction
+ // of the delegate.
+ impl.WillDestroySoon();
delegate_.reset();
}
return MOJO_RESULT_OK;

Powered by Google App Engine
This is Rietveld 408576698