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

Unified Diff: third_party/WebKit/Source/modules/geolocation/GeolocationWatchers.cpp

Issue 2759703002: Migrate WTF::HashMap::remove() to ::erase() (Closed)
Patch Set: rebase, fix one platform-specific reference Created 3 years, 9 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 e0bfc0e2bccd0fbcab15d743e6d17a6e5c96a488..fb953a938bba6995451b5892904bfecea3f2db82 100644
--- a/third_party/WebKit/Source/modules/geolocation/GeolocationWatchers.cpp
+++ b/third_party/WebKit/Source/modules/geolocation/GeolocationWatchers.cpp
@@ -36,7 +36,7 @@ void GeolocationWatchers::remove(int id) {
if (iter == m_idToNotifierMap.end())
return;
m_notifierToIdMap.erase(iter->value);
- m_idToNotifierMap.remove(iter);
+ m_idToNotifierMap.erase(iter);
}
void GeolocationWatchers::remove(GeoNotifier* notifier) {
@@ -44,7 +44,7 @@ void GeolocationWatchers::remove(GeoNotifier* notifier) {
if (iter == m_notifierToIdMap.end())
return;
m_idToNotifierMap.erase(iter->value);
- m_notifierToIdMap.remove(iter);
+ m_notifierToIdMap.erase(iter);
}
bool GeolocationWatchers::contains(GeoNotifier* notifier) const {

Powered by Google App Engine
This is Rietveld 408576698