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

Unified Diff: mojo/services/test_service/test_service_impl.cc

Issue 380413003: Mojo: Use InterfaceFactory<Interface> for service registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some InterfaceProvider impls for common cases Created 6 years, 5 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/services/test_service/test_service_impl.cc
diff --git a/mojo/services/test_service/test_service_impl.cc b/mojo/services/test_service/test_service_impl.cc
index 21373532b8f77c0f62ee7a2acd3c86536174c341..2692a5a0d9f4b5b4245192f20ec83b2140ed43e8 100644
--- a/mojo/services/test_service/test_service_impl.cc
+++ b/mojo/services/test_service/test_service_impl.cc
@@ -31,6 +31,7 @@ void TestServiceImpl::OnConnectionEstablished() {
void TestServiceImpl::OnConnectionError() {
application_->ReleaseRef();
+ delete this;
}
void TestServiceImpl::Ping(const mojo::Callback<void()>& callback) {

Powered by Google App Engine
This is Rietveld 408576698