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

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

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (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 cd44122c07a85c6eb508bf36337a8e3e88c7524b..1eac53290355599177404ac767e34e6a853e9217 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp
@@ -193,7 +193,7 @@ void IDBDatabase::onChanges(
const std::pair<int64_t, std::vector<int64_t>>& obs_txn = it->second;
HashSet<String> stores;
for (int64_t store_id : obs_txn.second) {
- stores.add(m_metadata.objectStores.get(store_id)->name);
+ stores.insert(m_metadata.objectStores.get(store_id)->name);
}
transaction = IDBTransaction::createObserver(
@@ -361,14 +361,14 @@ IDBTransaction* IDBDatabase::transaction(
HashSet<String> scope;
if (storeNames.isString()) {
- scope.add(storeNames.getAsString());
+ scope.insert(storeNames.getAsString());
} else if (storeNames.isStringSequence()) {
for (const String& name : storeNames.getAsStringSequence())
- scope.add(name);
+ scope.insert(name);
} else if (storeNames.isDOMStringList()) {
const Vector<String>& list = *storeNames.getAsDOMStringList();
for (const String& name : list)
- scope.add(name);
+ scope.insert(name);
} else {
NOTREACHED();
}

Powered by Google App Engine
This is Rietveld 408576698