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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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: Source/modules/filesystem/FileWriterSync.cpp
diff --git a/Source/modules/filesystem/FileWriterSync.cpp b/Source/modules/filesystem/FileWriterSync.cpp
index 4211c8a94805e8873cb6c02013466e1f8cdc30a1..8f7579d51f594576d8606150ca2a3d2987af7126 100644
--- a/Source/modules/filesystem/FileWriterSync.cpp
+++ b/Source/modules/filesystem/FileWriterSync.cpp
@@ -32,7 +32,6 @@
#include "modules/filesystem/FileWriterSync.h"
-#include "bindings/v8/ExceptionMessages.h"
#include "bindings/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
#include "core/fileapi/Blob.h"
@@ -46,7 +45,7 @@ void FileWriterSync::write(Blob* data, ExceptionState& exceptionState)
ASSERT(writer());
ASSERT(m_complete);
if (!data) {
- exceptionState.throwDOMException(TypeMismatchError, ExceptionMessages::failedToExecute("write", "FileReaderSync", FileError::typeMismatchErrorMessage));
+ exceptionState.throwDOMException(TypeMismatchError, FileError::typeMismatchErrorMessage);
return;
}
@@ -74,7 +73,7 @@ void FileWriterSync::truncate(long long offset, ExceptionState& exceptionState)
ASSERT(writer());
ASSERT(m_complete);
if (offset < 0) {
- exceptionState.throwDOMException(InvalidStateError, ExceptionMessages::failedToExecute("truncate", "FileWriterSync", FileError::invalidStateErrorMessage));
+ exceptionState.throwDOMException(InvalidStateError, FileError::invalidStateErrorMessage);
return;
}
prepareForWrite();
« no previous file with comments | « Source/modules/filesystem/DirectoryReaderSync.cpp ('k') | Source/modules/filesystem/WorkerGlobalScopeFileSystem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698