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

Unified Diff: content/browser/gamepad/gamepad_platform_data_fetcher_mac.mm

Issue 14299003: Gamepad: Gamepads length should be maximum supported. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gamepad/gamepad_platform_data_fetcher_mac.mm
diff --git a/content/browser/gamepad/gamepad_platform_data_fetcher_mac.mm b/content/browser/gamepad/gamepad_platform_data_fetcher_mac.mm
index 8748730b056f510da93c5d86227721c2a5bfe21d..84bad06f7707fc730bcb13f1d79fb0478e03da46 100644
--- a/content/browser/gamepad/gamepad_platform_data_fetcher_mac.mm
+++ b/content/browser/gamepad/gamepad_platform_data_fetcher_mac.mm
@@ -301,7 +301,7 @@ void GamepadPlatformDataFetcherMac::GetGamepadData(
// Copy to the current state to the output buffer, using the mapping
// function, if there is one available.
- pads->length = data_.length;
+ pads->length = WebKit::WebGamepads::itemsLengthCap;
for (size_t i = 0; i < WebKit::WebGamepads::itemsLengthCap; ++i) {
if (associated_[i].mapper)
associated_[i].mapper(data_.items[i], &pads->items[i]);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698