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 b9e309b66821dcbfc6e2d8c05e2af591392424c8..b3b3fc352a160410b0306d042756fcf0d56060ba 100644 |
--- a/third_party/WebKit/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp |
+++ b/third_party/WebKit/Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp |
@@ -49,13 +49,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; |
} |
@@ -89,12 +89,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; |
} |