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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.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/IDBObserverChanges.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.cpp
index f0a8ba971751e9caa7e9f391580ee6a94a56b937..45f62cd668c18643cc37944a5618d7eaf2c6b1e2 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObserverChanges.cpp
@@ -60,8 +60,8 @@ void IDBObserverChanges::extractChanges(
// TODO(dmurph): Avoid getting and setting repeated times.
for (const auto& idx : observationIndices) {
m_records
- .add(observations[idx].objectStoreId,
- HeapVector<Member<IDBObservation>>())
+ .insert(observations[idx].objectStoreId,
+ HeapVector<Member<IDBObservation>>())
.storedValue->value.push_back(
IDBObservation::create(observations[idx]));
}

Powered by Google App Engine
This is Rietveld 408576698