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

Unified Diff: third_party/WebKit/Source/core/dom/custom/V0CustomElementObserver.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/dom/custom/V0CustomElementObserver.cpp
diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElementObserver.cpp b/third_party/WebKit/Source/core/dom/custom/V0CustomElementObserver.cpp
index 7e9a808e5f9944fee991dbc26473e696c443da09..b390cc606b3e37021d7f3d4e4ccc447926597a11 100644
--- a/third_party/WebKit/Source/core/dom/custom/V0CustomElementObserver.cpp
+++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementObserver.cpp
@@ -52,7 +52,8 @@ void V0CustomElementObserver::notifyElementWasDestroyed(Element* element) {
}
void V0CustomElementObserver::observe(Element* element) {
- ElementObserverMap::AddResult result = elementObservers().add(element, this);
+ ElementObserverMap::AddResult result =
+ elementObservers().insert(element, this);
DCHECK(result.isNewEntry);
}

Powered by Google App Engine
This is Rietveld 408576698