Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Unified Diff: third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: Rebased, and closure annotations Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp
diff --git a/third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp b/third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp
index 3a49a417ec5012ede51447b71c05e825ce9d619c..3172ac70e918b6046bd27c5a0005d11b47396af4 100644
--- a/third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp
@@ -55,13 +55,13 @@ void DOMWindowFileSystem::webkitRequestFileSystem(DOMWindow& windowArg, int type
UseCounter::count(document, UseCounter::RequestFileSystemNonWebbyOrigin);
if (!document->getSecurityOrigin()->canAccessFileSystem()) {
- DOMFileSystem::scheduleCallback(document, errorCallback, FileError::create(FileError::SECURITY_ERR));
+ DOMFileSystem::scheduleCallback(document, errorCallback, FileError::SECURITY_ERR);
return;
}
FileSystemType fileSystemType = static_cast<FileSystemType>(type);
if (!DOMFileSystemBase::isValidType(fileSystemType)) {
- DOMFileSystem::scheduleCallback(document, errorCallback, FileError::create(FileError::INVALID_MODIFICATION_ERR));
+ DOMFileSystem::scheduleCallback(document, errorCallback, FileError::INVALID_MODIFICATION_ERR);
return;
}
@@ -81,12 +81,12 @@ void DOMWindowFileSystem::webkitResolveLocalFileSystemURL(DOMWindow& windowArg,
SecurityOrigin* securityOrigin = document->getSecurityOrigin();
KURL completedURL = document->completeURL(url);
if (!securityOrigin->canAccessFileSystem() || !securityOrigin->canRequest(completedURL)) {
- DOMFileSystem::scheduleCallback(document, errorCallback, FileError::create(FileError::SECURITY_ERR));
+ DOMFileSystem::scheduleCallback(document, errorCallback, FileError::SECURITY_ERR);
return;
}
if (!completedURL.isValid()) {
- DOMFileSystem::scheduleCallback(document, errorCallback, FileError::create(FileError::ENCODING_ERR));
+ DOMFileSystem::scheduleCallback(document, errorCallback, FileError::ENCODING_ERR);
return;
}

Powered by Google App Engine
This is Rietveld 408576698