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

Unified Diff: third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp

Issue 2858963002: Replace ASSERT with DCHECK in core/ (Closed)
Patch Set: WorkerBackingThread Created 3 years, 7 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/core/inspector/NetworkResourcesData.cpp
diff --git a/third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp b/third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp
index bddc64fec07487257b51a3d3761efe7c9977a47d..4a49c42e70b7d001be78ca22c9ed56b056fc0606 100644
--- a/third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp
+++ b/third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp
@@ -100,8 +100,8 @@ DEFINE_TRACE(NetworkResourcesData::ResourceData) {
void NetworkResourcesData::ResourceData::SetContent(const String& content,
bool base64_encoded) {
- ASSERT(!HasData());
- ASSERT(!HasContent());
+ DCHECK(!HasData());
+ DCHECK(!HasContent());
content_ = content;
base64_encoded_ = base64_encoded;
}
@@ -109,13 +109,13 @@ void NetworkResourcesData::ResourceData::SetContent(const String& content,
size_t NetworkResourcesData::ResourceData::RemoveContent() {
size_t result = 0;
if (HasData()) {
- ASSERT(!HasContent());
+ DCHECK(!HasContent());
result = data_buffer_->size();
data_buffer_ = nullptr;
}
if (HasContent()) {
- ASSERT(!HasData());
+ DCHECK(!HasData());
result = content_.CharactersSizeInBytes();
content_ = String();
}
@@ -163,7 +163,7 @@ size_t NetworkResourcesData::ResourceData::DataLength() const {
void NetworkResourcesData::ResourceData::AppendData(const char* data,
size_t data_length) {
- ASSERT(!HasContent());
+ DCHECK(!HasContent());
if (!data_buffer_)
data_buffer_ = SharedBuffer::Create(data, data_length);
else

Powered by Google App Engine
This is Rietveld 408576698