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

Unified Diff: third_party/WebKit/Source/platform/LinkHash.h

Issue 2846303002: Replace ASSERT with DCHECK in platform/ (Closed)
Patch Set: rebase 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/platform/LinkHash.h
diff --git a/third_party/WebKit/Source/platform/LinkHash.h b/third_party/WebKit/Source/platform/LinkHash.h
index 54df90054af83429cf3af604a63dd1b4d46b2093..9b3e098ba53565805d3b6c977ad22a935b3ad84b 100644
--- a/third_party/WebKit/Source/platform/LinkHash.h
+++ b/third_party/WebKit/Source/platform/LinkHash.h
@@ -46,10 +46,10 @@ struct LinkHashHash {
// See AlreadyHashed::avoidDeletedValue.
static unsigned AvoidDeletedValue(LinkHash hash64) {
- ASSERT(hash64);
+ DCHECK(hash64);
unsigned hash = static_cast<unsigned>(hash64);
unsigned new_hash = hash | (!(hash + 1) << 31);
- ASSERT(new_hash);
+ DCHECK(new_hash);
ASSERT(new_hash != 0xFFFFFFFF);
return new_hash;
}
« no previous file with comments | « third_party/WebKit/Source/platform/LifecycleNotifier.h ('k') | third_party/WebKit/Source/platform/PODRedBlackTree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698