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

Unified Diff: third_party/WebKit/Source/core/html/PublicURLManager.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/core/html/PublicURLManager.cpp
diff --git a/third_party/WebKit/Source/core/html/PublicURLManager.cpp b/third_party/WebKit/Source/core/html/PublicURLManager.cpp
index 609ee09b430650be62e73f02a324da89a4f5daf0..cdfd2911b1582490cba75daa943bcc2e2f71187c 100644
--- a/third_party/WebKit/Source/core/html/PublicURLManager.cpp
+++ b/third_party/WebKit/Source/core/html/PublicURLManager.cpp
@@ -53,9 +53,9 @@ String PublicURLManager::registerURL(ExecutionContext* context,
if (!m_isStopped) {
RegistryURLMap::ValueType* found =
- m_registryToURL.add(&registrable->registry(), URLMap()).storedValue;
+ m_registryToURL.insert(&registrable->registry(), URLMap()).storedValue;
found->key->registerURL(origin, url, registrable);
- found->value.add(urlString, uuid);
+ found->value.insert(urlString, uuid);
}
return urlString;

Powered by Google App Engine
This is Rietveld 408576698