Chromium Code Reviews| Index: webkit/fileapi/local_file_system_file_util.cc |
| =================================================================== |
| --- webkit/fileapi/local_file_system_file_util.cc (revision 82028) |
| +++ webkit/fileapi/local_file_system_file_util.cc (working copy) |
| @@ -44,6 +44,24 @@ |
| context, local_path, created); |
| } |
| +PlatformFileError LocalFileSystemFileUtil::GetLocalFilePath( |
| + FileSystemOperationContext* context, |
| + const FilePath& virtual_path, |
| + FilePath* local_path) { |
| + FileSystemPathManager* manager = |
| + context->file_system_context()->path_manager(); |
| + FilePath path = |
| + manager->GetFileSystemRootPathOnFileThread(context->src_origin_url(), |
| + context->src_type(), |
| + virtual_path, |
| + false); // create |
|
ericu
2011/04/19 20:30:49
Why is this not using GetLocalPath?
zel
2011/04/19 23:14:00
Good point, didn't noticed that one. Done.
|
| + if (path.empty()) |
| + return base::PLATFORM_FILE_ERROR_NOT_FOUND; |
| + |
| + *local_path = path.Append(virtual_path); |
| + return base::PLATFORM_FILE_OK; |
| +} |
| + |
| PlatformFileError LocalFileSystemFileUtil::GetFileInfo( |
| FileSystemOperationContext* context, |
| const FilePath& file_path, |