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

Unified Diff: third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp

Issue 2743023002: Migrate WTF::Deque::append() to ::push_back() (Closed)
Patch Set: rebase 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/gamepad/NavigatorGamepad.cpp
diff --git a/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp b/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
index d865686d827fa6282e134458248ae655a8cf484e..3f61474d0de77a2b3406d3e8cc43a7d605ec0a79 100644
--- a/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
+++ b/third_party/WebKit/Source/modules/gamepad/NavigatorGamepad.cpp
@@ -145,7 +145,7 @@ void NavigatorGamepad::didUpdateData() {
sampleGamepad(change.index, *gamepad, change.pad);
m_gamepads->set(change.index, gamepad);
- m_pendingEvents.append(gamepad);
+ m_pendingEvents.push_back(gamepad);
m_dispatchOneEventRunner->runAsync();
}
@@ -263,10 +263,10 @@ void NavigatorGamepad::pageVisibilityChanged() {
oldGamepad->id() != newGamepad->id();
if (connectedGamepadChanged || (oldWasConnected && !newIsConnected)) {
oldGamepad->setConnected(false);
- m_pendingEvents.append(oldGamepad);
+ m_pendingEvents.push_back(oldGamepad);
}
if (connectedGamepadChanged || (!oldWasConnected && newIsConnected)) {
- m_pendingEvents.append(newGamepad);
+ m_pendingEvents.push_back(newGamepad);
}
}

Powered by Google App Engine
This is Rietveld 408576698