diff options
Diffstat (limited to 'webkit/chromeos/fileapi/cros_mount_point_provider.cc')
-rw-r--r-- | webkit/chromeos/fileapi/cros_mount_point_provider.cc | 5 |
1 files changed, 2 insertions, 3 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( |