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

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

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.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBKey.h b/third_party/WebKit/Source/modules/indexeddb/IDBKey.h
index 7026b5c55995d6d3d8321a59093efdfdf74e36a2..ac8cd7f171e051137892ee1dcfc3eeafcc67beaf 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBKey.h
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBKey.h
@@ -79,27 +79,27 @@ class MODULES_EXPORT IDBKey : public GarbageCollectedFinalized<IDBKey> {
bool IsValid() const;
const KeyArray& Array() const {
- ASSERT(type_ == kArrayType);
+ DCHECK_EQ(type_, kArrayType);
return array_;
}
PassRefPtr<SharedBuffer> Binary() const {
- ASSERT(type_ == kBinaryType);
+ DCHECK_EQ(type_, kBinaryType);
return binary_;
}
const String& GetString() const {
- ASSERT(type_ == kStringType);
+ DCHECK_EQ(type_, kStringType);
return string_;
}
double Date() const {
- ASSERT(type_ == kDateType);
+ DCHECK_EQ(type_, kDateType);
return number_;
}
double Number() const {
- ASSERT(type_ == kNumberType);
+ DCHECK_EQ(type_, kNumberType);
return number_;
}
« no previous file with comments | « third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp ('k') | third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698