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

Unified Diff: content/browser/indexed_db/indexed_db_database_impl.cc

Issue 15724006: Migrate IDBDatabaseBackendTest from blink to chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update to ToT, fix review comments Created 7 years, 7 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: content/browser/indexed_db/indexed_db_database_impl.cc
diff --git a/content/browser/indexed_db/indexed_db_database_impl.cc b/content/browser/indexed_db/indexed_db_database_impl.cc
index 9ecc611fb9d46775426b15d532469fb43e823dc9..536b1fbf9c2d8235420b07a9d875dbf682eb9bd7 100644
--- a/content/browser/indexed_db/indexed_db_database_impl.cc
+++ b/content/browser/indexed_db/indexed_db_database_impl.cc
@@ -891,7 +891,8 @@ static bool UpdateKeyGenerator(
int64 object_store_id,
const IndexedDBKey* key,
bool check_current) {
- DCHECK(key && key->type() == WebIDBKey::NumberType);
+ DCHECK(key);
+ DCHECK_EQ(WebIDBKey::NumberType, key->type());
return backing_store->MaybeUpdateKeyGeneratorCurrentNumber(
transaction->BackingStoreTransaction(),
database_id,

Powered by Google App Engine
This is Rietveld 408576698