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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.h

Issue 2327643003: Replace ASSERT*() with DCHECK*() in core/fetch/ and core/loader/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ASSERT_UNUSED Created 4 years, 3 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/fetch/Resource.h
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h
index 70428fc06439fa2947416d13f9a3cb08b2b4ef80..f626f73158dd4e6b56f0f2429cf7636eb8a83593 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -217,7 +217,7 @@ public:
bool isUnusedPreload() const { return isPreloaded() && getPreloadResult() == PreloadNotReferenced; }
bool isPreloaded() const { return m_preloadCount; }
void increasePreloadCount() { ++m_preloadCount; }
- void decreasePreloadCount() { ASSERT(m_preloadCount); --m_preloadCount; }
+ void decreasePreloadCount() { DCHECK(m_preloadCount); --m_preloadCount; }
bool canReuseRedirectChain();
bool mustRevalidateDueToCacheHeaders();

Powered by Google App Engine
This is Rietveld 408576698