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

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileWriter.cpp

Issue 1480363003: Eliminate [LegacyInterfaceTypeChecking] for modules/filesystem bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Scope to safe changes Created 5 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: third_party/WebKit/Source/modules/filesystem/FileWriter.cpp
diff --git a/third_party/WebKit/Source/modules/filesystem/FileWriter.cpp b/third_party/WebKit/Source/modules/filesystem/FileWriter.cpp
index bf9f657e32ffa9d82ac0cae0414546e328b64929..ea023996362959ee6354c233caecd56e0fe5eefa 100644
--- a/third_party/WebKit/Source/modules/filesystem/FileWriter.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/FileWriter.cpp
@@ -95,16 +95,13 @@ bool FileWriter::hasPendingActivity() const
void FileWriter::write(Blob* data, ExceptionState& exceptionState)
{
+ ASSERT(data);
ASSERT(writer());
ASSERT(m_truncateLength == -1);
if (m_readyState == WRITING) {
setError(FileError::INVALID_STATE_ERR, exceptionState);
return;
}
- if (!data) {
- setError(FileError::TYPE_MISMATCH_ERR, exceptionState);
- return;
- }
if (m_recursionDepth > kMaxRecursionDepth) {
setError(FileError::SECURITY_ERR, exceptionState);
return;

Powered by Google App Engine
This is Rietveld 408576698