diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 22:39:51 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-17 22:39:51 +0000 |
commit | 85c1cb65706342b0723a521c83d797d8c2e02686 (patch) | |
tree | d7d727000307b8000dd6468ff4ceb6285df3f30e /base/file_util_proxy.cc | |
parent | 9c60fa405d17f9a11a31afec943993629d25a741 (diff) | |
download | chromium_src-85c1cb65706342b0723a521c83d797d8c2e02686.zip chromium_src-85c1cb65706342b0723a521c83d797d8c2e02686.tar.gz chromium_src-85c1cb65706342b0723a521c83d797d8c2e02686.tar.bz2 |
base::Bind: Final cleanup in file_util_proxy.cc.
BUG=none
TEST=none
R=csilv@chromium.org
Review URL: http://codereview.chromium.org/8326001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105945 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_proxy.cc')
-rw-r--r-- | base/file_util_proxy.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/base/file_util_proxy.cc b/base/file_util_proxy.cc index 376eb2f6..09bdc24 100644 --- a/base/file_util_proxy.cc +++ b/base/file_util_proxy.cc @@ -4,6 +4,7 @@ #include "base/file_util_proxy.h" +#include "base/bind.h" #include "base/message_loop_proxy.h" // TODO(jianli): Move the code from anonymous namespace to base namespace so @@ -80,8 +81,7 @@ class MessageLoopRelay bool Start(scoped_refptr<base::MessageLoopProxy> message_loop_proxy, const tracked_objects::Location& from_here) { return message_loop_proxy->PostTask( - from_here, - NewRunnableMethod(this, &MessageLoopRelay::ProcessOnTargetThread)); + from_here, base::Bind(&MessageLoopRelay::ProcessOnTargetThread, this)); } protected: @@ -106,8 +106,7 @@ class MessageLoopRelay void ProcessOnTargetThread() { RunWork(); origin_message_loop_proxy_->PostTask( - FROM_HERE, - NewRunnableMethod(this, &MessageLoopRelay::RunCallback)); + FROM_HERE, base::Bind(&MessageLoopRelay::RunCallback, this)); } scoped_refptr<base::MessageLoopProxy> origin_message_loop_proxy_; |