summaryrefslogtreecommitdiffstats
path: root/media/base/test_helpers.cc
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-09 21:45:29 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-09 21:45:29 +0000
commit09b50b424e41cf5de2aee805c8f227acf7cb31be (patch)
treea9106c326f0008ed6c17d2c28ba897c47939d189 /media/base/test_helpers.cc
parentea583c06bc760b671beb3952d6e6123317a75d53 (diff)
downloadchromium_src-09b50b424e41cf5de2aee805c8f227acf7cb31be.zip
chromium_src-09b50b424e41cf5de2aee805c8f227acf7cb31be.tar.gz
chromium_src-09b50b424e41cf5de2aee805c8f227acf7cb31be.tar.bz2
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
Diffstat (limited to 'media/base/test_helpers.cc')
-rw-r--r--media/base/test_helpers.cc4
1 files changed, 2 insertions, 2 deletions
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)));
}