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

Unified Diff: media/cast/cast_environment.cc

Issue 670623002: Change base::TickClock to a ref counted class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_redesign
Patch Set: y Created 6 years, 2 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/cast/cast_environment.h ('k') | media/cast/test/skewed_tick_clock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/cast_environment.cc
diff --git a/media/cast/cast_environment.cc b/media/cast/cast_environment.cc
index f22f0a4eca220bf1041baa3467ec0192f8f6f75a..d897d9a46d280726450d284c5046bdde41edcc2c 100644
--- a/media/cast/cast_environment.cc
+++ b/media/cast/cast_environment.cc
@@ -22,15 +22,16 @@ namespace media {
namespace cast {
CastEnvironment::CastEnvironment(
- scoped_ptr<base::TickClock> clock,
+ scoped_refptr<base::TickClock> clock,
scoped_refptr<SingleThreadTaskRunner> main_thread_proxy,
scoped_refptr<SingleThreadTaskRunner> audio_thread_proxy,
scoped_refptr<SingleThreadTaskRunner> video_thread_proxy)
: main_thread_proxy_(main_thread_proxy),
audio_thread_proxy_(audio_thread_proxy),
video_thread_proxy_(video_thread_proxy),
- clock_(clock.Pass()),
- logging_(new LoggingImpl) {}
+ clock_(clock),
+ logging_(new LoggingImpl) {
+}
CastEnvironment::~CastEnvironment() {
// Logging must be deleted on the main thread.
« no previous file with comments | « media/cast/cast_environment.h ('k') | media/cast/test/skewed_tick_clock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698