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

Unified Diff: Source/modules/filesystem/EntrySync.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/DirectoryReaderSync.cpp ('k') | Source/modules/filesystem/FileWriter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/EntrySync.cpp
diff --git a/Source/modules/filesystem/EntrySync.cpp b/Source/modules/filesystem/EntrySync.cpp
index 9c538bc2d653bd77b343e51e3737ceed61a6fd8e..98932df6c29c8ccbab1310a3432f2926482bb758 100644
--- a/Source/modules/filesystem/EntrySync.cpp
+++ b/Source/modules/filesystem/EntrySync.cpp
@@ -31,7 +31,7 @@
#include "config.h"
#include "modules/filesystem/EntrySync.h"
-#include "core/fileapi/FileException.h"
+#include "core/dom/ExceptionCode.h"
#include "modules/filesystem/DOMFilePath.h"
#include "modules/filesystem/DOMFileSystemSync.h"
#include "modules/filesystem/DirectoryEntry.h"
@@ -54,7 +54,7 @@ PassRefPtr<Metadata> EntrySync::getMetadata(ExceptionCode& ec)
ec = 0;
MetadataSyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
if (!m_fileSystem->getMetadata(this, helper.successCallback(), helper.errorCallback())) {
- ec = FileException::INVALID_MODIFICATION_ERR;
+ ec = FSInvalidModificationError;
return 0;
}
return helper.getResult(ec);
@@ -65,7 +65,7 @@ PassRefPtr<EntrySync> EntrySync::moveTo(PassRefPtr<DirectoryEntrySync> parent, c
ec = 0;
EntrySyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
if (!m_fileSystem->move(this, parent.get(), name, helper.successCallback(), helper.errorCallback())) {
- ec = FileException::INVALID_MODIFICATION_ERR;
+ ec = FSInvalidModificationError;
return 0;
}
return helper.getResult(ec);
@@ -76,7 +76,7 @@ PassRefPtr<EntrySync> EntrySync::copyTo(PassRefPtr<DirectoryEntrySync> parent, c
ec = 0;
EntrySyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
if (!m_fileSystem->copy(this, parent.get(), name, helper.successCallback(), helper.errorCallback())) {
- ec = FileException::INVALID_MODIFICATION_ERR;
+ ec = FSInvalidModificationError;
return 0;
}
return helper.getResult(ec);
@@ -87,7 +87,7 @@ void EntrySync::remove(ExceptionCode& ec) const
ec = 0;
VoidSyncCallbackHelper helper(m_fileSystem->asyncFileSystem());
if (!m_fileSystem->remove(this, helper.successCallback(), helper.errorCallback())) {
- ec = FileException::INVALID_MODIFICATION_ERR;
+ ec = FSInvalidModificationError;
return;
}
helper.getResult(ec);
« no previous file with comments | « Source/modules/filesystem/DirectoryReaderSync.cpp ('k') | Source/modules/filesystem/FileWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698