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

Unified Diff: media/cast/cast_environment.cc

Issue 145443005: Fixes for memory and threading issues in cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 6 years, 11 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/rtcp/rtcp_receiver_unittest.cc » ('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 ea79e105951a0b917eeb732a13937bf13673bf4c..dddd0f7cd78347c82139bd99a4fc4fdb1c6cacf8 100644
--- a/media/cast/cast_environment.cc
+++ b/media/cast/cast_environment.cc
@@ -22,7 +22,7 @@ namespace media {
namespace cast {
CastEnvironment::CastEnvironment(
- base::TickClock* clock,
+ scoped_ptr<base::TickClock> clock,
scoped_refptr<TaskRunner> main_thread_proxy,
scoped_refptr<TaskRunner> audio_encode_thread_proxy,
scoped_refptr<TaskRunner> audio_decode_thread_proxy,
@@ -30,7 +30,7 @@ CastEnvironment::CastEnvironment(
scoped_refptr<TaskRunner> video_decode_thread_proxy,
scoped_refptr<TaskRunner> transport_thread_proxy,
const CastLoggingConfig& config)
- : clock_(clock),
+ : clock_(clock.Pass()),
main_thread_proxy_(main_thread_proxy),
audio_encode_thread_proxy_(audio_encode_thread_proxy),
audio_decode_thread_proxy_(audio_decode_thread_proxy),
@@ -113,7 +113,7 @@ bool CastEnvironment::CurrentlyOn(ThreadId identifier) {
}
base::TickClock* CastEnvironment::Clock() const {
- return clock_;
+ return clock_.get();
}
LoggingImpl* CastEnvironment::Logging() {
« no previous file with comments | « media/cast/cast_environment.h ('k') | media/cast/rtcp/rtcp_receiver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698