[gamepad] Unregister GamepadMonitor at destruction
Previously, GamepadMonitor would only remove itself as a gamepad consumer if it was active (GamepadStartPolling called with no corresponding GamepadStopPolling), and would leak if it was inactive. This CL ensures GamepadMonitor is always removed if it was ever added as a gamepad consumer. BUG=998128 Change-Id: If4f1ac4d1f3b6889acffeb584c2c6dc04b310e31 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1804836Reviewed-by:Ovidio de Jesús Ruiz-Henríquez <odejesush@chromium.org> Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/master@{#697451}
Showing
Please register or sign in to comment