diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-18 23:58:28 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-18 23:58:28 +0000 |
commit | 329ca5832efb63459b5683cf2dd1b9fb486adb86 (patch) | |
tree | 518e60739d260bc20f1fad2cc732d3e9b4585af3 /webkit/chromeos | |
parent | f676e2f8722e9092e0be2ce2d98abddff1a35fd4 (diff) | |
download | chromium_src-329ca5832efb63459b5683cf2dd1b9fb486adb86.zip chromium_src-329ca5832efb63459b5683cf2dd1b9fb486adb86.tar.gz chromium_src-329ca5832efb63459b5683cf2dd1b9fb486adb86.tar.bz2 |
base::Bind: Convert FileSystemPathManager::GetRootPathCallback.
BUG=none
TEST=none
R=csilv@chromium.org
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106139
Review URL: http://codereview.chromium.org/8342008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106174 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/chromeos')
-rw-r--r-- | webkit/chromeos/fileapi/cros_mount_point_provider.cc | 5 | ||||
-rw-r--r-- | webkit/chromeos/fileapi/cros_mount_point_provider.h | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/webkit/chromeos/fileapi/cros_mount_point_provider.cc b/webkit/chromeos/fileapi/cros_mount_point_provider.cc index 678d706..b3d6daf 100644 --- a/webkit/chromeos/fileapi/cros_mount_point_provider.cc +++ b/webkit/chromeos/fileapi/cros_mount_point_provider.cc @@ -84,15 +84,14 @@ void CrosMountPointProvider::ValidateFileSystemRootAndGetURL( const GURL& origin_url, fileapi::FileSystemType type, bool create, - fileapi::FileSystemPathManager::GetRootPathCallback* callback) { + const fileapi::FileSystemPathManager::GetRootPathCallback& callback) { DCHECK(type == fileapi::kFileSystemTypeExternal); std::string name(GetOriginIdentifierFromURL(origin_url)); name += ':'; name += fileapi::kExternalName; FilePath root_path; root_path = FilePath(fileapi::kExternalDir); - callback->Run(true, root_path, name); - delete callback; + callback.Run(true, root_path, name); } FilePath CrosMountPointProvider::ValidateFileSystemRootAndGetPathOnFileThread( diff --git a/webkit/chromeos/fileapi/cros_mount_point_provider.h b/webkit/chromeos/fileapi/cros_mount_point_provider.h index 2144b2f..ecb0638 100644 --- a/webkit/chromeos/fileapi/cros_mount_point_provider.h +++ b/webkit/chromeos/fileapi/cros_mount_point_provider.h @@ -39,7 +39,8 @@ class CrosMountPointProvider const GURL& origin_url, fileapi::FileSystemType type, bool create, - fileapi::FileSystemPathManager::GetRootPathCallback* callback) OVERRIDE; + const fileapi::FileSystemPathManager::GetRootPathCallback& callback) + OVERRIDE; virtual FilePath ValidateFileSystemRootAndGetPathOnFileThread( const GURL& origin_url, fileapi::FileSystemType type, |