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

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

Issue 1134003009: media: Use mojo::StrongBinding in mojo media services. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 5 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/mojo_renderer_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/mojo_renderer_service.cc
diff --git a/media/mojo/services/mojo_renderer_service.cc b/media/mojo/services/mojo_renderer_service.cc
index c5dfd77dee689af75a308b902ab228783b4b2ed6..27f44224fb4d3b53eb9890e38c8dea5a7c2011b3 100644
--- a/media/mojo/services/mojo_renderer_service.cc
+++ b/media/mojo/services/mojo_renderer_service.cc
@@ -26,8 +26,10 @@ namespace media {
// Time interval to update media time.
const int kTimeUpdateIntervalMs = 50;
-MojoRendererService::MojoRendererService()
- : state_(STATE_UNINITIALIZED),
+MojoRendererService::MojoRendererService(
+ mojo::InterfaceRequest<mojo::MediaRenderer> request)
+ : binding_(this, request.Pass()),
+ state_(STATE_UNINITIALIZED),
last_media_time_usec_(0),
weak_factory_(this) {
weak_this_ = weak_factory_.GetWeakPtr();
« no previous file with comments | « media/mojo/services/mojo_renderer_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698