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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBAny.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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/indexeddb/IDBEventDispatcher.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/indexeddb/IDBAny.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBAny.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBAny.cpp
index e0cf3eace1a8b24b33f1e1b74f426f77a70aa05d..a7924ff99c118b8d567cd6cce5e578f52f9b59da 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBAny.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBAny.cpp
@@ -42,7 +42,7 @@ IDBAny* IDBAny::CreateNull() {
}
IDBAny::IDBAny(Type type) : type_(type) {
- ASSERT(type == kUndefinedType || type == kNullType);
+ DCHECK(type == kUndefinedType || type == kNullType);
}
IDBAny::~IDBAny() {}
@@ -53,55 +53,55 @@ void IDBAny::ContextWillBeDestroyed() {
}
DOMStringList* IDBAny::DomStringList() const {
- ASSERT(type_ == kDOMStringListType);
+ DCHECK_EQ(type_, kDOMStringListType);
return dom_string_list_.Get();
}
IDBCursor* IDBAny::IdbCursor() const {
- ASSERT(type_ == kIDBCursorType);
+ DCHECK_EQ(type_, kIDBCursorType);
SECURITY_DCHECK(idb_cursor_->IsKeyCursor());
return idb_cursor_.Get();
}
IDBCursorWithValue* IDBAny::IdbCursorWithValue() const {
- ASSERT(type_ == kIDBCursorWithValueType);
+ DCHECK_EQ(type_, kIDBCursorWithValueType);
SECURITY_DCHECK(idb_cursor_->IsCursorWithValue());
return ToIDBCursorWithValue(idb_cursor_.Get());
}
IDBDatabase* IDBAny::IdbDatabase() const {
- ASSERT(type_ == kIDBDatabaseType);
+ DCHECK_EQ(type_, kIDBDatabaseType);
return idb_database_.Get();
}
IDBIndex* IDBAny::IdbIndex() const {
- ASSERT(type_ == kIDBIndexType);
+ DCHECK_EQ(type_, kIDBIndexType);
return idb_index_.Get();
}
IDBObjectStore* IDBAny::IdbObjectStore() const {
- ASSERT(type_ == kIDBObjectStoreType);
+ DCHECK_EQ(type_, kIDBObjectStoreType);
return idb_object_store_.Get();
}
const IDBKey* IDBAny::Key() const {
// If type is IDBValueType then instead use value()->primaryKey().
- ASSERT(type_ == kKeyType);
+ DCHECK_EQ(type_, kKeyType);
return idb_key_.Get();
}
IDBValue* IDBAny::Value() const {
- ASSERT(type_ == kIDBValueType);
+ DCHECK_EQ(type_, kIDBValueType);
return idb_value_.Get();
}
const Vector<RefPtr<IDBValue>>* IDBAny::Values() const {
- ASSERT(type_ == kIDBValueArrayType);
+ DCHECK_EQ(type_, kIDBValueArrayType);
return &idb_values_;
}
int64_t IDBAny::Integer() const {
- ASSERT(type_ == kIntegerType);
+ DCHECK_EQ(type_, kIntegerType);
return integer_;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/indexeddb/IDBEventDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698