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

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

Issue 1249643004: media: Quit MojoMediaApplication when no ServiceFactory service is bound. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 5 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
« no previous file with comments | « media/mojo/services/service_factory_impl.h ('k') | mojo/application/public/cpp/application_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/service_factory_impl.cc
diff --git a/media/mojo/services/service_factory_impl.cc b/media/mojo/services/service_factory_impl.cc
index 8a16a7b5d28a017f7c159b72bae5db1099e7ef12..fcbbc61432407a8cf9b9521603bd3a5fc5981b13 100644
--- a/media/mojo/services/service_factory_impl.cc
+++ b/media/mojo/services/service_factory_impl.cc
@@ -11,16 +11,19 @@
#include "media/mojo/services/mojo_cdm_service.h"
#include "media/mojo/services/mojo_media_client.h"
#include "media/mojo/services/mojo_renderer_service.h"
+#include "mojo/application/public/cpp/app_lifetime_helper.h"
namespace media {
ServiceFactoryImpl::ServiceFactoryImpl(
mojo::InterfaceRequest<interfaces::ServiceFactory> request,
mojo::ServiceProvider* service_provider,
- scoped_refptr<MediaLog> media_log)
+ scoped_refptr<MediaLog> media_log,
+ scoped_ptr<mojo::AppRefCount> parent_app_refcount)
: binding_(this, request.Pass()),
service_provider_(service_provider),
- media_log_(media_log) {
+ media_log_(media_log),
+ parent_app_refcount_(parent_app_refcount.Pass()) {
DVLOG(1) << __FUNCTION__;
}
« no previous file with comments | « media/mojo/services/service_factory_impl.h ('k') | mojo/application/public/cpp/application_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698