| Index: webkit/browser/fileapi/local_file_util.cc
|
| diff --git a/webkit/browser/fileapi/local_file_util.cc b/webkit/browser/fileapi/local_file_util.cc
|
| index 032244f2b3c1f771f2d4c3c3377414571a60e1f2..90d45e3f0b1f8718408cc331d5ee8f2e49876f1b 100644
|
| --- a/webkit/browser/fileapi/local_file_util.cc
|
| +++ b/webkit/browser/fileapi/local_file_util.cc
|
| @@ -89,13 +89,20 @@ base::File::Error LocalFileUtil::CreateOrOpen(
|
| if (base::IsLink(file_path))
|
| return base::File::FILE_ERROR_NOT_FOUND;
|
|
|
| - return NativeFileUtil::CreateOrOpen(file_path, file_flags, file_handle,
|
| - created);
|
| + // TODO(rvargas): make FileSystemFileUtil use base::File.
|
| + base::File file = NativeFileUtil::CreateOrOpen(file_path, file_flags);
|
| + if (!file.IsValid())
|
| + return file.error_details();
|
| +
|
| + *created = file.created();
|
| + *file_handle = file.TakePlatformFile();
|
| + return base::File::FILE_OK;
|
| }
|
|
|
| base::File::Error LocalFileUtil::Close(FileSystemOperationContext* context,
|
| base::PlatformFile file) {
|
| - return NativeFileUtil::Close(file);
|
| + base::File auto_closed(file);
|
| + return base::File::FILE_OK;
|
| }
|
|
|
| base::File::Error LocalFileUtil::EnsureFileExists(
|
|
|