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

Unified Diff: third_party/WebKit/Source/modules/sensor/SensorProxy.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/modules/sensor/SensorProxy.cpp
diff --git a/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp b/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp
index ea0a9199393487883fbd7d0a361bf38766c5dfe8..5495c0771904aefa8b4bfce6aa9990919f939768 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp
+++ b/third_party/WebKit/Source/modules/sensor/SensorProxy.cpp
@@ -261,7 +261,7 @@ void SensorProxy::onRemoveConfigurationCompleted(double frequency,
return;
}
- m_frequenciesUsed.remove(index);
+ m_frequenciesUsed.erase(index);
}
bool SensorProxy::tryReadFromBuffer(device::SensorReading& result) {

Powered by Google App Engine
This is Rietveld 408576698