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

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

Issue 2810513002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in modules/filesystem (Closed)
Patch Set: split Created 3 years, 8 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/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 8bc2b380ce5b7262e3ec2222898e8a1445e49f85..d3e451d8474975a9fd32de137f9c2738a524c375 100644
--- a/third_party/WebKit/Source/modules/filesystem/FileWriterSync.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/FileWriterSync.cpp
@@ -39,8 +39,8 @@
namespace blink {
void FileWriterSync::write(Blob* data, ExceptionState& exception_state) {
- ASSERT(data);
- ASSERT(Writer());
+ DCHECK(data);
+ DCHECK(Writer());
DCHECK(complete_);
PrepareForWrite();
@@ -56,14 +56,14 @@ void FileWriterSync::write(Blob* data, ExceptionState& exception_state) {
}
void FileWriterSync::seek(long long position, ExceptionState& exception_state) {
- ASSERT(Writer());
+ DCHECK(Writer());
DCHECK(complete_);
SeekInternal(position);
}
void FileWriterSync::truncate(long long offset,
ExceptionState& exception_state) {
- ASSERT(Writer());
+ DCHECK(Writer());
DCHECK(complete_);
if (offset < 0) {
exception_state.ThrowDOMException(kInvalidStateError,

Powered by Google App Engine
This is Rietveld 408576698