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

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

Issue 2671933002: Migrate WTF::HashMap::add() to ::insert() (Closed)
Patch Set: rebase, add TODOs Created 3 years, 10 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 0b840c26e1bd06136255ac778b97fa61fc8d2ea9..b07af8249d59922b79952f614851c45174976470 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp
@@ -144,7 +144,7 @@ void IDBDatabase::setDatabaseMetadata(const IDBDatabaseMetadata& metadata) {
void IDBDatabase::transactionCreated(IDBTransaction* transaction) {
DCHECK(transaction);
DCHECK(!m_transactions.contains(transaction->id()));
- m_transactions.add(transaction->id(), transaction);
+ m_transactions.insert(transaction->id(), transaction);
if (transaction->isVersionChange()) {
DCHECK(!m_versionChangeTransaction);

Powered by Google App Engine
This is Rietveld 408576698