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

Unified Diff: media/cast/test/receiver.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/test/end2end_unittest.cc ('k') | media/cast/test/sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/receiver.cc
diff --git a/media/cast/test/receiver.cc b/media/cast/test/receiver.cc
index f2760030859648fdfb795af7efd698f15a4819c8..12365fb1bb1586d1a66d26ba4e8c3dfddd43c67a 100644
--- a/media/cast/test/receiver.cc
+++ b/media/cast/test/receiver.cc
@@ -222,13 +222,13 @@ int main(int argc, char** argv) {
audio_thread.Start();
video_thread.Start();
- base::DefaultTickClock clock;
+ scoped_ptr<base::TickClock> clock(new base::DefaultTickClock());
// Enable receiver side threads, and disable logging.
// Running transport on main thread.
scoped_refptr<media::cast::CastEnvironment> cast_environment(new
media::cast::CastEnvironment(
- &clock,
+ clock.Pass(),
main_message_loop.message_loop_proxy(),
NULL,
audio_thread.message_loop_proxy(),
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | media/cast/test/sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698