From 09b50b424e41cf5de2aee805c8f227acf7cb31be Mon Sep 17 00:00:00 2001 From: "scherkus@chromium.org" Date: Thu, 9 Jan 2014 21:45:29 +0000 Subject: Remove media::BindToLoop() in favour of media::BindToCurrentLoop(). Nearly all instances of BindToLoop() can be replaced with BindToCurrentLoop(). The three instances of BindToLoop() that can't be replaced with BindToCurrentLoop() are better off not using BindToLoop() in the first place. BUG=167240 TBR=jam Review URL: https://codereview.chromium.org/66953005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243983 0039d316-1c4b-4281-b951-d872f2087c98 --- media/base/test_helpers.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'media/base/test_helpers.cc') diff --git a/media/base/test_helpers.cc b/media/base/test_helpers.cc index 43c5cfa..cf06d44 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))); } -- cgit v1.1