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

Unified Diff: Source/modules/filesystem/FileWriterSync.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/FileWriterBase.cpp ('k') | Source/modules/filesystem/SyncCallbackHelper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/filesystem/FileWriterSync.cpp
diff --git a/Source/modules/filesystem/FileWriterSync.cpp b/Source/modules/filesystem/FileWriterSync.cpp
index 4441e7908b0c12b7b46197cfec13f8c5ee240741..05dd30050b02625f93f15313a814a141225dd989 100644
--- a/Source/modules/filesystem/FileWriterSync.cpp
+++ b/Source/modules/filesystem/FileWriterSync.cpp
@@ -32,8 +32,8 @@
#include "modules/filesystem/FileWriterSync.h"
+#include "core/dom/ExceptionCode.h"
#include "core/fileapi/Blob.h"
-#include "core/fileapi/FileException.h"
#include "modules/filesystem/AsyncFileWriter.h"
namespace WebCore {
@@ -44,7 +44,7 @@ void FileWriterSync::write(Blob* data, ExceptionCode& ec)
ASSERT(m_complete);
ec = 0;
if (!data) {
- ec = FileException::TYPE_MISMATCH_ERR;
+ ec = FSTypeMismatchError;
return;
}
@@ -52,7 +52,7 @@ void FileWriterSync::write(Blob* data, ExceptionCode& ec)
writer()->write(position(), data);
writer()->waitForOperationToComplete();
ASSERT(m_complete);
- ec = FileException::ErrorCodeToExceptionCode(m_error);
+ ec = FileError::ErrorCodeToExceptionCode(m_error);
if (ec)
return;
setPosition(position() + data->size());
@@ -74,14 +74,14 @@ void FileWriterSync::truncate(long long offset, ExceptionCode& ec)
ASSERT(m_complete);
ec = 0;
if (offset < 0) {
- ec = FileException::INVALID_STATE_ERR;
+ ec = FSInvalidStateError;
return;
}
prepareForWrite();
writer()->truncate(offset);
writer()->waitForOperationToComplete();
ASSERT(m_complete);
- ec = FileException::ErrorCodeToExceptionCode(m_error);
+ ec = FileError::ErrorCodeToExceptionCode(m_error);
if (ec)
return;
if (offset < position())
« no previous file with comments | « Source/modules/filesystem/FileWriterBase.cpp ('k') | Source/modules/filesystem/SyncCallbackHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698