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

Unified Diff: third_party/WebKit/Source/modules/cachestorage/Cache.cpp

Issue 2879773002: Replace remaining ASSERT with DCHECK|DCHECK_FOO in modules (Closed)
Patch Set: Replace remaining ASSERT with DCHECK|DCHECK_FOO in modules 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/modules/cachestorage/Cache.cpp
diff --git a/third_party/WebKit/Source/modules/cachestorage/Cache.cpp b/third_party/WebKit/Source/modules/cachestorage/Cache.cpp
index f02785cab831ec7522dd697a4116815f57ec0bcc..4a8dd9bf1c478127bd1ad50311a28c3abafd8873 100644
--- a/third_party/WebKit/Source/modules/cachestorage/Cache.cpp
+++ b/third_party/WebKit/Source/modules/cachestorage/Cache.cpp
@@ -289,13 +289,13 @@ class Cache::BarrierCallbackForPut final
: number_of_remaining_operations_(number_of_operations),
cache_(cache),
resolver_(resolver) {
- ASSERT(0 < number_of_remaining_operations_);
+ DCHECK_LT(0, number_of_remaining_operations_);
batch_operations_.resize(number_of_operations);
}
void OnSuccess(size_t index,
const WebServiceWorkerCache::BatchOperation& batch_operation) {
- ASSERT(index < batch_operations_.size());
+ DCHECK_LT(index, batch_operations_.size());
if (completed_)
return;
if (!resolver_->GetExecutionContext() ||

Powered by Google App Engine
This is Rietveld 408576698