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

Unified Diff: mojo/public/shell/lib/service.cc

Issue 137623017: Cleanup Service<> and ServiceFactory<> when clients go away. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review nits Created 6 years, 10 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 | « mojo/mojo.gyp ('k') | mojo/public/shell/service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/shell/lib/service.cc
diff --git a/mojo/public/shell/lib/service.cc b/mojo/public/shell/lib/service.cc
index c9c4341728d8856cb2602788a8a3ddac600091e4..cb851bc9bada7971e203219789280cc6cd5f99b1 100644
--- a/mojo/public/shell/lib/service.cc
+++ b/mojo/public/shell/lib/service.cc
@@ -12,4 +12,8 @@ ServiceFactoryBase::ServiceFactoryBase(ScopedMessagePipeHandle shell_handle)
ServiceFactoryBase::~ServiceFactoryBase() {}
+void ServiceFactoryBase::DisconnectFromShell() {
+ shell_.reset();
+}
+
} // namespace mojo
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/public/shell/service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698