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

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

Issue 72363002: Rename es => exceptionState in other than bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Retry Created 7 years, 1 month 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/FileWriter.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 854f393d6f4a8c37f50a94222565da20227f7afb..4211c8a94805e8873cb6c02013466e1f8cdc30a1 100644
--- a/Source/modules/filesystem/FileWriterSync.cpp
+++ b/Source/modules/filesystem/FileWriterSync.cpp
@@ -41,12 +41,12 @@
namespace WebCore {
-void FileWriterSync::write(Blob* data, ExceptionState& es)
+void FileWriterSync::write(Blob* data, ExceptionState& exceptionState)
{
ASSERT(writer());
ASSERT(m_complete);
if (!data) {
- es.throwDOMException(TypeMismatchError, ExceptionMessages::failedToExecute("write", "FileReaderSync", FileError::typeMismatchErrorMessage));
+ exceptionState.throwDOMException(TypeMismatchError, ExceptionMessages::failedToExecute("write", "FileReaderSync", FileError::typeMismatchErrorMessage));
return;
}
@@ -54,7 +54,7 @@ void FileWriterSync::write(Blob* data, ExceptionState& es)
writer()->write(position(), data->uuid());
ASSERT(m_complete);
if (m_error) {
- FileError::throwDOMException(es, m_error);
+ FileError::throwDOMException(exceptionState, m_error);
return;
}
setPosition(position() + data->size());
@@ -62,26 +62,26 @@ void FileWriterSync::write(Blob* data, ExceptionState& es)
setLength(position());
}
-void FileWriterSync::seek(long long position, ExceptionState& es)
+void FileWriterSync::seek(long long position, ExceptionState& exceptionState)
{
ASSERT(writer());
ASSERT(m_complete);
seekInternal(position);
}
-void FileWriterSync::truncate(long long offset, ExceptionState& es)
+void FileWriterSync::truncate(long long offset, ExceptionState& exceptionState)
{
ASSERT(writer());
ASSERT(m_complete);
if (offset < 0) {
- es.throwDOMException(InvalidStateError, ExceptionMessages::failedToExecute("truncate", "FileWriterSync", FileError::invalidStateErrorMessage));
+ exceptionState.throwDOMException(InvalidStateError, ExceptionMessages::failedToExecute("truncate", "FileWriterSync", FileError::invalidStateErrorMessage));
return;
}
prepareForWrite();
writer()->truncate(offset);
ASSERT(m_complete);
if (m_error) {
- FileError::throwDOMException(es, m_error);
+ FileError::throwDOMException(exceptionState, m_error);
return;
}
if (offset < position())
« no previous file with comments | « Source/modules/filesystem/FileWriter.cpp ('k') | Source/modules/filesystem/SyncCallbackHelper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698