| Index: third_party/WebKit/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp
|
| diff --git a/third_party/WebKit/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp b/third_party/WebKit/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp
|
| index 7a0841c0e64b4304f65bcb53ecc8cfc460158d7c..6ed2b337ea22dafc73b155bc8165d2acc38c2c34 100644
|
| --- a/third_party/WebKit/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp
|
| +++ b/third_party/WebKit/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp
|
| @@ -48,13 +48,13 @@ void WorkerGlobalScopeFileSystem::webkitRequestFileSystem(WorkerGlobalScope& wor
|
| {
|
| ExecutionContext* secureContext = worker.getExecutionContext();
|
| if (!secureContext->getSecurityOrigin()->canAccessFileSystem()) {
|
| - DOMFileSystem::scheduleCallback(&worker, errorCallback, FileError::create(FileError::SECURITY_ERR));
|
| + DOMFileSystem::scheduleCallback(&worker, errorCallback, FileError::SECURITY_ERR);
|
| return;
|
| }
|
|
|
| FileSystemType fileSystemType = static_cast<FileSystemType>(type);
|
| if (!DOMFileSystemBase::isValidType(fileSystemType)) {
|
| - DOMFileSystem::scheduleCallback(&worker, errorCallback, FileError::create(FileError::INVALID_MODIFICATION_ERR));
|
| + DOMFileSystem::scheduleCallback(&worker, errorCallback, FileError::INVALID_MODIFICATION_ERR);
|
| return;
|
| }
|
|
|
| @@ -88,12 +88,12 @@ void WorkerGlobalScopeFileSystem::webkitResolveLocalFileSystemURL(WorkerGlobalSc
|
| KURL completedURL = worker.completeURL(url);
|
| ExecutionContext* secureContext = worker.getExecutionContext();
|
| if (!secureContext->getSecurityOrigin()->canAccessFileSystem() || !secureContext->getSecurityOrigin()->canRequest(completedURL)) {
|
| - DOMFileSystem::scheduleCallback(&worker, errorCallback, FileError::create(FileError::SECURITY_ERR));
|
| + DOMFileSystem::scheduleCallback(&worker, errorCallback, FileError::SECURITY_ERR);
|
| return;
|
| }
|
|
|
| if (!completedURL.isValid()) {
|
| - DOMFileSystem::scheduleCallback(&worker, errorCallback, FileError::create(FileError::ENCODING_ERR));
|
| + DOMFileSystem::scheduleCallback(&worker, errorCallback, FileError::ENCODING_ERR);
|
| return;
|
| }
|
|
|
|
|