diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-29 00:07:03 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-29 00:07:03 +0000 |
commit | 716476cf40c8d367b1325c5a46f4e5e886965c28 (patch) | |
tree | 691686c712763e6f90ce2f1b9e2d2b022f6005dc /content/renderer/pepper_plugin_delegate_impl.cc | |
parent | 2a6bc3e61c13a82f1a61c552d5a940c14b0a9db1 (diff) | |
download | chromium_src-716476cf40c8d367b1325c5a46f4e5e886965c28.zip chromium_src-716476cf40c8d367b1325c5a46f4e5e886965c28.tar.gz chromium_src-716476cf40c8d367b1325c5a46f4e5e886965c28.tar.bz2 |
Revert 115929 - Convert stragglers not on spreadsheet to base::Bind()
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/9035002
TBR=ajwong@chromium.org
Review URL: http://codereview.chromium.org/9006057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/pepper_plugin_delegate_impl.cc')
-rw-r--r-- | content/renderer/pepper_plugin_delegate_impl.cc | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/content/renderer/pepper_plugin_delegate_impl.cc b/content/renderer/pepper_plugin_delegate_impl.cc index bd5b7f5..26a150c 100644 --- a/content/renderer/pepper_plugin_delegate_impl.cc +++ b/content/renderer/pepper_plugin_delegate_impl.cc @@ -248,7 +248,8 @@ bool PlatformAudioImpl::Initialize( ChildProcess::current()->io_message_loop()->PostTask( FROM_HERE, - base::Bind(&PlatformAudioImpl::InitializeOnIOThread, this, params)); + NewRunnableMethod(this, &PlatformAudioImpl::InitializeOnIOThread, + params)); return true; } @@ -256,7 +257,7 @@ bool PlatformAudioImpl::StartPlayback() { if (filter_) { ChildProcess::current()->io_message_loop()->PostTask( FROM_HERE, - base::Bind(&PlatformAudioImpl::StartPlaybackOnIOThread, this)); + NewRunnableMethod(this, &PlatformAudioImpl::StartPlaybackOnIOThread)); return true; } return false; @@ -266,7 +267,7 @@ bool PlatformAudioImpl::StopPlayback() { if (filter_) { ChildProcess::current()->io_message_loop()->PostTask( FROM_HERE, - base::Bind(&PlatformAudioImpl::StopPlaybackOnIOThread, this)); + NewRunnableMethod(this, &PlatformAudioImpl::StopPlaybackOnIOThread)); return true; } return false; @@ -328,8 +329,8 @@ void PlatformAudioImpl::OnLowLatencyCreated( client_->StreamCreated(handle, length, socket_handle); } else { main_message_loop_proxy_->PostTask(FROM_HERE, - base::Bind(&PlatformAudioImpl::OnLowLatencyCreated, this, handle, - socket_handle, length)); + NewRunnableMethod(this, &PlatformAudioImpl::OnLowLatencyCreated, + handle, socket_handle, length)); } } @@ -414,21 +415,24 @@ bool PlatformAudioInputImpl::Initialize( ChildProcess::current()->io_message_loop()->PostTask( FROM_HERE, - base::Bind(&PlatformAudioInputImpl::InitializeOnIOThread, this, params)); + NewRunnableMethod(this, &PlatformAudioInputImpl::InitializeOnIOThread, + params)); return true; } bool PlatformAudioInputImpl::StartCapture() { ChildProcess::current()->io_message_loop()->PostTask( FROM_HERE, - base::Bind(&PlatformAudioInputImpl::StartCaptureOnIOThread, this)); + NewRunnableMethod(this, + &PlatformAudioInputImpl::StartCaptureOnIOThread)); return true; } bool PlatformAudioInputImpl::StopCapture() { ChildProcess::current()->io_message_loop()->PostTask( FROM_HERE, - base::Bind(&PlatformAudioInputImpl::StopCaptureOnIOThread, this)); + NewRunnableMethod(this, + &PlatformAudioInputImpl::StopCaptureOnIOThread)); return true; } @@ -491,10 +495,9 @@ void PlatformAudioInputImpl::OnLowLatencyCreated( if (client_) client_->StreamCreated(handle, length, socket_handle); } else { - main_message_loop_proxy_->PostTask( - FROM_HERE, - base::Bind(&PlatformAudioInputImpl::OnLowLatencyCreated, this, - handle, socket_handle, length)); + main_message_loop_proxy_->PostTask(FROM_HERE, + NewRunnableMethod(this, &PlatformAudioInputImpl::OnLowLatencyCreated, + handle, socket_handle, length)); } } |