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

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileWriterSync.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/FileWriterSync.cpp
diff --git a/third_party/WebKit/Source/modules/filesystem/FileWriterSync.cpp b/third_party/WebKit/Source/modules/filesystem/FileWriterSync.cpp
index 656f144cb22eaf3c6dec8a2357843a12190f8c11..b147d96ad6f1c5bb4ab3bb365d02b1bd9d462580 100644
--- a/third_party/WebKit/Source/modules/filesystem/FileWriterSync.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/FileWriterSync.cpp
@@ -42,12 +42,9 @@ namespace blink {
void FileWriterSync::write(Blob* data, ExceptionState& exceptionState)
{
+ ASSERT(data);
ASSERT(writer());
ASSERT(m_complete);
- if (!data) {
- exceptionState.throwDOMException(TypeMismatchError, FileError::typeMismatchErrorMessage);
- return;
- }
prepareForWrite();
writer()->write(position(), data->uuid());

Powered by Google App Engine
This is Rietveld 408576698