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

Unified Diff: third_party/WebKit/Source/modules/filesystem/FileWriterBase.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/FileWriterBase.cpp
diff --git a/third_party/WebKit/Source/modules/filesystem/FileWriterBase.cpp b/third_party/WebKit/Source/modules/filesystem/FileWriterBase.cpp
index 5c265e5f399fa4a24d6e7d027dd88ff41377a461..107bc74de9383ef32e3413b26cb0061283df3484 100644
--- a/third_party/WebKit/Source/modules/filesystem/FileWriterBase.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/FileWriterBase.cpp
@@ -42,8 +42,8 @@ FileWriterBase::~FileWriterBase() {}
void FileWriterBase::Initialize(std::unique_ptr<WebFileWriter> writer,
long long length) {
- ASSERT(!writer_);
- ASSERT(length >= 0);
+ DCHECK(!writer_);
+ DCHECK_GE(length, 0);
writer_ = std::move(writer);
length_ = length;
}

Powered by Google App Engine
This is Rietveld 408576698