Index: content/browser/indexed_db/indexed_db_database.cc |
diff --git a/content/browser/indexed_db/indexed_db_database.cc b/content/browser/indexed_db/indexed_db_database.cc |
index 6fbc77f87b99ee7583e67c1ebe95268c2a52d882..8a924eb43d327d181a68cf07cf359200b0fd79b8 100644 |
--- a/content/browser/indexed_db/indexed_db_database.cc |
+++ b/content/browser/indexed_db/indexed_db_database.cc |
@@ -745,9 +745,7 @@ void IndexedDBDatabase::GetAllOperation( |
IndexedDBTransaction* transaction) { |
IDB_TRACE1("IndexedDBDatabase::GetAllOperation", "txn.id", transaction->id()); |
- DCHECK_GE(max_count, 0); |
- if (!max_count) |
- max_count = std::numeric_limits<decltype(max_count)>::max(); |
+ DCHECK_GT(max_count, 0); |
DCHECK(metadata_.object_stores.find(object_store_id) != |
metadata_.object_stores.end()); |