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

Unified Diff: third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.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/InspectorCacheStorageAgent.cpp
diff --git a/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp b/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
index cf846c286d47e1535a57e417a45215186965c23f..25a41d896d1135d3dd8ae94725d6370d9641470d 100644
--- a/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
+++ b/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
@@ -181,7 +181,7 @@ class ResponsesAccumulator : public RefCounted<ResponsesAccumulator> {
void AddRequestResponsePair(const WebServiceWorkerRequest& request,
const WebServiceWorkerResponse& response) {
- ASSERT(num_responses_left_ > 0);
+ DCHECK_GT(num_responses_left_, 0);
RequestResponse& request_response =
responses_.at(responses_.size() - num_responses_left_);
request_response.request = request.Url().GetString();

Powered by Google App Engine
This is Rietveld 408576698