| 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;
|
|
|