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

Unified Diff: media/base/test_helpers.cc

Issue 66953005: Remove media::BindToLoop() in favour of media::BindToCurrentLoop(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix cros 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
Index: media/base/test_helpers.cc
diff --git a/media/base/test_helpers.cc b/media/base/test_helpers.cc
index 43c5cfac748f92af54ec9d2aefa0254999b75f21..cf06d44927f74462d547ae0fbd5679d83842a7c0 100644
--- a/media/base/test_helpers.cc
+++ b/media/base/test_helpers.cc
@@ -62,14 +62,14 @@ WaitableMessageLoopEvent::~WaitableMessageLoopEvent() {}
base::Closure WaitableMessageLoopEvent::GetClosure() {
DCHECK_EQ(message_loop_, base::MessageLoop::current());
- return BindToLoop(message_loop_->message_loop_proxy(), base::Bind(
+ return BindToCurrentLoop(base::Bind(
&WaitableMessageLoopEvent::OnCallback, base::Unretained(this),
PIPELINE_OK));
}
PipelineStatusCB WaitableMessageLoopEvent::GetPipelineStatusCB() {
DCHECK_EQ(message_loop_, base::MessageLoop::current());
- return BindToLoop(message_loop_->message_loop_proxy(), base::Bind(
+ return BindToCurrentLoop(base::Bind(
&WaitableMessageLoopEvent::OnCallback, base::Unretained(this)));
}

Powered by Google App Engine
This is Rietveld 408576698