| Index: webkit/fileapi/file_system_context.cc
|
| diff --git a/webkit/fileapi/file_system_context.cc b/webkit/fileapi/file_system_context.cc
|
| index 4a9fe7af466dcc2c03f25c2b0ea741da53bbd7a9..45615152c80da2b3852f35a8d8db43fba5836bbe 100644
|
| --- a/webkit/fileapi/file_system_context.cc
|
| +++ b/webkit/fileapi/file_system_context.cc
|
| @@ -202,13 +202,22 @@ void FileSystemContext::DeleteFileSystem(
|
| }
|
|
|
| FileSystemOperation* FileSystemContext::CreateFileSystemOperation(
|
| - const FileSystemURL& url) {
|
| - if (!url.is_valid())
|
| + const FileSystemURL& url, PlatformFileError* error_code) {
|
| + if (!url.is_valid()) {
|
| + if (error_code)
|
| + *error_code = base::PLATFORM_FILE_ERROR_INVALID_URL;
|
| return NULL;
|
| + }
|
| FileSystemMountPointProvider* mount_point_provider =
|
| GetMountPointProvider(url.type());
|
| - if (!mount_point_provider)
|
| + if (!mount_point_provider) {
|
| + if (error_code)
|
| + *error_code = base::PLATFORM_FILE_ERROR_FAILED;
|
| return NULL;
|
| + }
|
| +
|
| + if (error_code)
|
| + *error_code = base::PLATFORM_FILE_OK;
|
| return mount_point_provider->CreateFileSystemOperation(url, this);
|
| }
|
|
|
|
|