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

Unified Diff: third_party/WebKit/Source/modules/vibration/VibrationController.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/vibration/VibrationController.cpp
diff --git a/third_party/WebKit/Source/modules/vibration/VibrationController.cpp b/third_party/WebKit/Source/modules/vibration/VibrationController.cpp
index f6e5cb999ddd312a78962a30a7ca10fb91c918d8..8754e073a74ebff8910dea0a2df0c83ffd516224 100644
--- a/third_party/WebKit/Source/modules/vibration/VibrationController.cpp
+++ b/third_party/WebKit/Source/modules/vibration/VibrationController.cpp
@@ -146,12 +146,12 @@ void VibrationController::didVibrate() {
// Use the current vibration entry of the pattern as the initial interval.
unsigned interval = m_pattern[0];
- m_pattern.remove(0);
+ m_pattern.erase(0);
// If there is another entry it is for a pause.
if (!m_pattern.isEmpty()) {
interval += m_pattern[0];
- m_pattern.remove(0);
+ m_pattern.erase(0);
}
m_timerDoVibrate.startOneShot(interval / 1000.0, BLINK_FROM_HERE);

Powered by Google App Engine
This is Rietveld 408576698