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

Unified Diff: third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest 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/platform/network/NetworkStateNotifier.cpp
diff --git a/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp b/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp
index 49a172f314603e21a6ef1b5d2160994331cf0422..87833bbfff58fdc624b1dffd98893f606bb0d0d6 100644
--- a/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp
+++ b/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp
@@ -253,7 +253,7 @@ void NetworkStateNotifier::collectZeroedObservers(
// If any observers were removed during the iteration they will have
// 0 values, clean them up.
for (size_t i = 0; i < list->zeroedObservers.size(); ++i)
- list->observers.remove(list->zeroedObservers[i]);
+ list->observers.erase(list->zeroedObservers[i]);
list->zeroedObservers.clear();

Powered by Google App Engine
This is Rietveld 408576698