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

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

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 of N] (Closed)
Patch Set: Created 3 years, 11 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/Geolocation.cpp
diff --git a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
index 95f543b97e7bb87954231871bba13be0daba3b3b..846e17b31ed74a2ed5f655ed3528b5f725c91e0f 100644
--- a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
+++ b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp
@@ -171,7 +171,7 @@ void Geolocation::getCurrentPosition(PositionCallback* successCallback,
GeoNotifier::create(this, successCallback, errorCallback, options);
startRequest(notifier);
- m_oneShots.add(notifier);
+ m_oneShots.insert(notifier);
}
int Geolocation::watchPosition(PositionCallback* successCallback,
@@ -216,7 +216,7 @@ void Geolocation::startRequest(GeoNotifier* notifier) {
else if (!isAllowed()) {
// If we don't yet have permission, request for permission before calling
// startUpdating()
- m_pendingForPermissionNotifiers.add(notifier);
+ m_pendingForPermissionNotifiers.insert(notifier);
requestPermission();
} else {
startUpdating(notifier);
@@ -375,7 +375,7 @@ void Geolocation::extractNotifiersWithCachedPosition(
void Geolocation::copyToSet(const GeoNotifierVector& src,
GeoNotifierSet& dest) {
for (GeoNotifier* notifier : src)
- dest.add(notifier);
+ dest.insert(notifier);
}
void Geolocation::handleError(PositionError* error) {
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Response.cpp ('k') | third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698