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

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

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: Created 3 years, 11 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/IDBDatabase.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp
index 1eac53290355599177404ac767e34e6a853e9217..0b840c26e1bd06136255ac778b97fa61fc8d2ea9 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp
@@ -156,7 +156,7 @@ void IDBDatabase::transactionFinished(const IDBTransaction* transaction) {
DCHECK(transaction);
DCHECK(m_transactions.contains(transaction->id()));
DCHECK_EQ(m_transactions.get(transaction->id()), transaction);
- m_transactions.remove(transaction->id());
+ m_transactions.erase(transaction->id());
if (transaction->isVersionChange()) {
DCHECK_EQ(m_versionChangeTransaction, transaction);
@@ -348,7 +348,7 @@ void IDBDatabase::deleteObjectStore(const String& name,
m_backend->deleteObjectStore(m_versionChangeTransaction->id(), objectStoreId);
m_versionChangeTransaction->objectStoreDeleted(objectStoreId, name);
- m_metadata.objectStores.remove(objectStoreId);
+ m_metadata.objectStores.erase(objectStoreId);
}
IDBTransaction* IDBDatabase::transaction(
@@ -553,7 +553,7 @@ void IDBDatabase::revertObjectStoreCreation(int64_t objectStoreId) {
<< "Object store metadata reverted when versionchange transaction is "
"still active";
DCHECK(m_metadata.objectStores.contains(objectStoreId));
- m_metadata.objectStores.remove(objectStoreId);
+ m_metadata.objectStores.erase(objectStoreId);
}
void IDBDatabase::revertObjectStoreMetadata(

Powered by Google App Engine
This is Rietveld 408576698