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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp

Issue 2801893008: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in modules/indexeddb (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/modules/indexeddb/IDBKey.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp
index 3d0f55b7a68a14008a2657258b23690ddb9c4a09..24de2c099fc2c4731acb508ccaf8c6b3a5d8c551 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp
@@ -60,7 +60,7 @@ static int CompareNumbers(const T& a, const T& b) {
}
int IDBKey::Compare(const IDBKey* other) const {
- ASSERT(other);
+ DCHECK(other);
if (type_ != other->type_)
return type_ > other->type_ ? -1 : 1;
@@ -84,16 +84,16 @@ int IDBKey::Compare(const IDBKey* other) const {
return CompareNumbers(number_, other->number_);
case kInvalidType:
case kTypeEnumMax:
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return 0;
}
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return 0;
}
bool IDBKey::IsLessThan(const IDBKey* other) const {
- ASSERT(other);
+ DCHECK(other);
return Compare(other) == -1;
}
« no previous file with comments | « third_party/WebKit/Source/modules/indexeddb/IDBKey.h ('k') | third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698