diff options
Diffstat (limited to 'webkit/browser/fileapi/file_system_operation_runner.cc')
-rw-r--r-- | webkit/browser/fileapi/file_system_operation_runner.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webkit/browser/fileapi/file_system_operation_runner.cc b/webkit/browser/fileapi/file_system_operation_runner.cc index f12571b..123eb79 100644 --- a/webkit/browser/fileapi/file_system_operation_runner.cc +++ b/webkit/browser/fileapi/file_system_operation_runner.cc @@ -386,6 +386,19 @@ OperationID FileSystemOperationRunner::MoveFileLocal( return id; } +base::PlatformFileError FileSystemOperationRunner::SyncGetPlatformPath( + const FileSystemURL& url, + base::FilePath* platform_path) { + base::PlatformFileError error = base::PLATFORM_FILE_OK; + FileSystemOperation* operation = CreateLocalFileSystemOperation(url, &error); + if (!operation) + return error; + + operation->AsLocalFileSystemOperation()->SyncGetPlatformPath( + url, platform_path); + return base::PLATFORM_FILE_OK; +} + FileSystemOperationRunner::FileSystemOperationRunner( FileSystemContext* file_system_context) : file_system_context_(file_system_context) {} |