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

Unified Diff: third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp

Issue 2673543003: Migrate WTF::HashMap::remove() to ::erase() (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/core/page/NetworkStateNotifier.cpp
diff --git a/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp b/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
index 3ceaaccce04e8263973b73ff46f6fe777f853d35..fc38dfe137f6377b4edfaf1f1e548e348c3dd6f5 100644
--- a/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
+++ b/third_party/WebKit/Source/core/page/NetworkStateNotifier.cpp
@@ -205,7 +205,7 @@ void NetworkStateNotifier::collectZeroedObservers(ObserverList* list,
if (list->observers.isEmpty()) {
MutexLocker locker(m_mutex);
- m_observers.remove(context); // deletes list
+ m_observers.erase(context); // deletes list
}
}

Powered by Google App Engine
This is Rietveld 408576698