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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/MemoryCache.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/platform/loader/fetch/MemoryCache.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/MemoryCache.cpp b/third_party/WebKit/Source/platform/loader/fetch/MemoryCache.cpp
index 4498febddd63002ccefff6c5010cc5c00a944954..3fb2c7c5dd72959b5a8581cc0cff544e06140084 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/MemoryCache.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/MemoryCache.cpp
@@ -124,7 +124,7 @@ MemoryCache::ResourceMap* MemoryCache::ensureResourceMap(
const String& cacheIdentifier) {
if (!m_resourceMaps.contains(cacheIdentifier)) {
ResourceMapIndex::AddResult result =
- m_resourceMaps.add(cacheIdentifier, new ResourceMap);
+ m_resourceMaps.insert(cacheIdentifier, new ResourceMap);
CHECK(result.isNewEntry);
}
return m_resourceMaps.get(cacheIdentifier);
« no previous file with comments | « third_party/WebKit/Source/platform/heap/ThreadState.cpp ('k') | third_party/WebKit/Source/platform/mhtml/MHTMLParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698