diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-20 22:03:43 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-20 22:03:43 +0000 |
commit | 9e629ab7f5050ea6de068c2cf2d5099d6ce2d41a (patch) | |
tree | a3966fb64e445ab48ac995f50b4a6f7dd562ecc5 /webkit/fileapi/sandbox_mount_point_provider.cc | |
parent | 1dd1c7d6265f69a5c0aea599e3fed3d6e4e8cc41 (diff) | |
download | chromium_src-9e629ab7f5050ea6de068c2cf2d5099d6ce2d41a.zip chromium_src-9e629ab7f5050ea6de068c2cf2d5099d6ce2d41a.tar.gz chromium_src-9e629ab7f5050ea6de068c2cf2d5099d6ce2d41a.tar.bz2 |
base::Bind: Final cleanup in webkit/fileapi.
BUG=none
TEST=none
R=csilv@chromium.org
Review URL: http://codereview.chromium.org/8353023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106600 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/sandbox_mount_point_provider.cc')
-rw-r--r-- | webkit/fileapi/sandbox_mount_point_provider.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/webkit/fileapi/sandbox_mount_point_provider.cc b/webkit/fileapi/sandbox_mount_point_provider.cc index 7bc8dba..25b4f23 100644 --- a/webkit/fileapi/sandbox_mount_point_provider.cc +++ b/webkit/fileapi/sandbox_mount_point_provider.cc @@ -4,6 +4,7 @@ #include "webkit/fileapi/sandbox_mount_point_provider.h" +#include "base/bind.h" #include "base/command_line.h" #include "base/logging.h" #include "base/memory/scoped_callback_factory.h" @@ -325,8 +326,11 @@ class SandboxMountPointProvider::GetFileSystemRootPathTask } void Start(bool create) { - file_message_loop_->PostTask(FROM_HERE, NewRunnableMethod(this, - &GetFileSystemRootPathTask::GetFileSystemRootPathOnFileThread, create)); + file_message_loop_->PostTask( + FROM_HERE, + base::Bind( + &GetFileSystemRootPathTask::GetFileSystemRootPathOnFileThread, this, + create)); } private: @@ -339,9 +343,10 @@ class SandboxMountPointProvider::GetFileSystemRootPathTask } void DispatchCallbackOnCallerThread(const FilePath& root_path) { - origin_message_loop_proxy_->PostTask(FROM_HERE, - NewRunnableMethod(this, &GetFileSystemRootPathTask::DispatchCallback, - root_path)); + origin_message_loop_proxy_->PostTask( + FROM_HERE, + base::Bind(&GetFileSystemRootPathTask::DispatchCallback, this, + root_path)); } void DispatchCallback(const FilePath& root_path) { |