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

Unified Diff: third_party/WebKit/Source/modules/geolocation/GeolocationWatchers.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/geolocation/GeolocationWatchers.cpp
diff --git a/third_party/WebKit/Source/modules/geolocation/GeolocationWatchers.cpp b/third_party/WebKit/Source/modules/geolocation/GeolocationWatchers.cpp
index b11a54e415859e83a374a1c0d384892f1fa0ea8d..e0bfc0e2bccd0fbcab15d743e6d17a6e5c96a488 100644
--- a/third_party/WebKit/Source/modules/geolocation/GeolocationWatchers.cpp
+++ b/third_party/WebKit/Source/modules/geolocation/GeolocationWatchers.cpp
@@ -16,7 +16,7 @@ DEFINE_TRACE(GeolocationWatchers) {
bool GeolocationWatchers::add(int id, GeoNotifier* notifier) {
DCHECK_GT(id, 0);
- if (!m_idToNotifierMap.add(id, notifier).isNewEntry)
+ if (!m_idToNotifierMap.insert(id, notifier).isNewEntry)
return false;
m_notifierToIdMap.set(notifier, id);
return true;

Powered by Google App Engine
This is Rietveld 408576698