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

Unified Diff: media/mojo/services/media_service.cc

Issue 2884163002: media: Use StrongBindingSet for InterfaceFactoryImpl in MediaService (Closed)
Patch Set: Created 3 years, 7 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 | « media/mojo/services/media_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/media_service.cc
diff --git a/media/mojo/services/media_service.cc b/media/mojo/services/media_service.cc
index 25e9834d65a36a8ca230b76154f670966742341e..7fc69d3ef70925e8a8f0ab2949205ae6c77c5cd5 100644
--- a/media/mojo/services/media_service.cc
+++ b/media/mojo/services/media_service.cc
@@ -41,6 +41,7 @@ void MediaService::OnBindInterface(
}
bool MediaService::OnServiceManagerConnectionLost() {
+ interface_factory_bindings_.CloseAllBindings();
alokp 2017/05/16 16:54:44 Do we need to manually delete InterfaceFactory bin
xhwang 2017/05/16 17:05:33 That should work, but we need a comment to make su
mojo_media_client_.reset();
return true;
}
@@ -57,7 +58,7 @@ void MediaService::CreateInterfaceFactory(
if (!mojo_media_client_)
return;
- mojo::MakeStrongBinding(
+ interface_factory_bindings_.AddBinding(
base::MakeUnique<InterfaceFactoryImpl>(
std::move(host_interfaces), &media_log_, ref_factory_->CreateRef(),
mojo_media_client_.get()),
« no previous file with comments | « media/mojo/services/media_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698