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

Unified Diff: third_party/WebKit/Source/core/fileapi/FileReader.cpp

Issue 2040563002: Remove FileError interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fe-dep
Patch Set: Created 4 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
Index: third_party/WebKit/Source/core/fileapi/FileReader.cpp
diff --git a/third_party/WebKit/Source/core/fileapi/FileReader.cpp b/third_party/WebKit/Source/core/fileapi/FileReader.cpp
index 8824f8079a07fd361152da5f5ab7b66cd48f89f3..441647d4fc8c5a89cc7ceba410300f9f9d0b92ec 100644
--- a/third_party/WebKit/Source/core/fileapi/FileReader.cpp
+++ b/third_party/WebKit/Source/core/fileapi/FileReader.cpp
@@ -344,7 +344,7 @@ void FileReader::doAbort()
terminate();
- m_error = FileError::create(FileError::ABORT_ERR);
+ m_error = FileError::createDOMException(FileError::ABORT_ERR);
// Unregister the reader.
ThrottlingController::FinishReaderType finalStep = ThrottlingController::removeReader(getExecutionContext(), this);
@@ -431,7 +431,7 @@ void FileReader::didFail(FileError::ErrorCode errorCode)
ASSERT(m_state != DONE);
m_state = DONE;
- m_error = FileError::create(static_cast<FileError::ErrorCode>(errorCode));
+ m_error = FileError::createDOMException(static_cast<FileError::ErrorCode>(errorCode));
// Unregister the reader.
ThrottlingController::FinishReaderType finalStep = ThrottlingController::removeReader(getExecutionContext(), this);

Powered by Google App Engine
This is Rietveld 408576698