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

Unified Diff: Source/modules/filesystem/DirectoryEntrySync.cpp

Issue 17761003: Remove FileException (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix compile warning Created 7 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
« no previous file with comments | « Source/modules/filesystem/DOMFileSystemSync.cpp ('k') | Source/modules/filesystem/DirectoryReaderSync.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/DirectoryEntrySync.cpp
diff --git a/Source/modules/filesystem/DirectoryEntrySync.cpp b/Source/modules/filesystem/DirectoryEntrySync.cpp
index 981ba31749d6bb44e719ff2d6ffb187a4d5c15e4..655ca9927b885975a09587b8d32ae0cf34286e27 100644
--- a/Source/modules/filesystem/DirectoryEntrySync.cpp
+++ b/Source/modules/filesystem/DirectoryEntrySync.cpp
@@ -31,7 +31,7 @@
#include "config.h"
#include "modules/filesystem/DirectoryEntrySync.h"
-#include "core/fileapi/FileException.h"
+#include "core/dom/ExceptionCode.h"
#include "modules/filesystem/DirectoryReaderSync.h"
#include "modules/filesystem/EntrySync.h"
#include "modules/filesystem/FileEntrySync.h"
@@ -56,7 +56,7 @@ PassRefPtr<FileEntrySync> DirectoryEntrySync::getFile(const String& path, const
FileSystemFlags flags(options);
EntrySyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
if (!m_fileSystem->getFile(this, path, flags, helper.successCallback(), helper.errorCallback())) {
- ec = FileException::INVALID_MODIFICATION_ERR;
+ ec = FSInvalidModificationError;
return 0;
}
return static_pointer_cast<FileEntrySync>(helper.getResult(ec));
@@ -68,7 +68,7 @@ PassRefPtr<DirectoryEntrySync> DirectoryEntrySync::getDirectory(const String& pa
FileSystemFlags flags(options);
EntrySyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
if (!m_fileSystem->getDirectory(this, path, flags, helper.successCallback(), helper.errorCallback())) {
- ec = FileException::INVALID_MODIFICATION_ERR;
+ ec = FSInvalidModificationError;
return 0;
}
return static_pointer_cast<DirectoryEntrySync>(helper.getResult(ec));
@@ -79,7 +79,7 @@ void DirectoryEntrySync::removeRecursively(ExceptionCode& ec)
ec = 0;
VoidSyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
if (!m_fileSystem->removeRecursively(this, helper.successCallback(), helper.errorCallback())) {
- ec = FileException::INVALID_MODIFICATION_ERR;
+ ec = FSInvalidModificationError;
return;
}
helper.getResult(ec);
« no previous file with comments | « Source/modules/filesystem/DOMFileSystemSync.cpp ('k') | Source/modules/filesystem/DirectoryReaderSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698