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

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

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase 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/IDBObjectStore.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
index 7971e809ea219436a10b86091c6b38d07fb27e56..73ec8929954ef9939e7c6f2cfec71ea90ed3d1c5 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.cpp
@@ -823,7 +823,7 @@ IDBIndex* IDBObjectStore::index(const String& name,
}
DCHECK(metadata().indexes.contains(indexId));
- RefPtr<IDBIndexMetadata> indexMetadata = metadata().indexes.get(indexId);
+ RefPtr<IDBIndexMetadata> indexMetadata = metadata().indexes.at(indexId);
DCHECK(indexMetadata.get());
IDBIndex* index =
IDBIndex::create(std::move(indexMetadata), this, m_transaction.get());
@@ -1062,7 +1062,7 @@ void IDBObjectStore::revertMetadata(
// unconditionally reset the deletion marker.
DCHECK(oldMetadata->indexes.contains(indexId));
RefPtr<IDBIndexMetadata> oldIndexMetadata =
- oldMetadata->indexes.get(indexId);
+ oldMetadata->indexes.at(indexId);
index->revertMetadata(std::move(oldIndexMetadata));
}
m_metadata = std::move(oldMetadata);
@@ -1081,7 +1081,7 @@ void IDBObjectStore::revertDeletedIndexMetadata(IDBIndex& deletedIndex) {
const int64_t indexId = deletedIndex.id();
DCHECK(m_metadata->indexes.contains(indexId))
<< "The object store's metadata was not correctly reverted";
- RefPtr<IDBIndexMetadata> oldIndexMetadata = m_metadata->indexes.get(indexId);
+ RefPtr<IDBIndexMetadata> oldIndexMetadata = m_metadata->indexes.at(indexId);
deletedIndex.revertMetadata(std::move(oldIndexMetadata));
}

Powered by Google App Engine
This is Rietveld 408576698