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

Unified Diff: device/gamepad/gamepad_provider.cc

Issue 2351573002: Added support for GVR controllers (Closed)
Patch Set: Added appropriate Webkit dep to device/vr/BUILD.gn Created 4 years, 3 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
« no previous file with comments | « device/gamepad/gamepad_pad_state_provider.h ('k') | device/vr/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/gamepad/gamepad_provider.cc
diff --git a/device/gamepad/gamepad_provider.cc b/device/gamepad/gamepad_provider.cc
index 510194da0e81454445229e79db63bb739d0f1dbe..d5dd358702c74bcdb42ada0696cce0fd2a56f6d3 100644
--- a/device/gamepad/gamepad_provider.cc
+++ b/device/gamepad/gamepad_provider.cc
@@ -187,9 +187,11 @@ void GamepadProvider::DoRemoveSourceGamepadDataFetcher(GamepadSource source) {
DCHECK(polling_thread_->task_runner()->BelongsToCurrentThread());
for (GamepadFetcherVector::iterator it = data_fetchers_.begin();
- it != data_fetchers_.end(); ++it) {
+ it != data_fetchers_.end();) {
if ((*it)->source() == source) {
- data_fetchers_.erase(it);
+ it = data_fetchers_.erase(it);
+ } else {
+ ++it;
}
}
}
« no previous file with comments | « device/gamepad/gamepad_pad_state_provider.h ('k') | device/vr/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698