commit | 13eb6457a7a87c34105cbcc9fcaa8af83530d4e2 | [log] [tgz] |
---|---|---|
author | Oksana Zhuravlova <oksamyt@chromium.org> | Wed Jul 18 16:58:03 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jul 18 16:58:03 2018 |
tree | eae681592b032be925e090f8453bc9868d066389 | |
parent | cc2003bca4371afb45ee9ec1e7424519cf73e690 [diff] |
Check the frame for null only if the reader is null This change moves the frame check inside the reader check to address cases when GamepadSharedMemoryReader::Start() is called again after Stop(), but the frame is null. Since the frame parameter is only used when creating a new instance of GamepadSharedMemoryReader, the check was moved inside the corresponding condition. Bug: 864557 Change-Id: I7b32e82f5c79af2007b211cf80cff43ff33be2c9 Reviewed-on: https://chromium-review.googlesource.com/1141156 Reviewed-by: Matt Reynolds <mattreynolds@chromium.org> Reviewed-by: Reilly Grant <reillyg@chromium.org> Commit-Queue: Oksana Zhuravlova <oksamyt@chromium.org> Cr-Commit-Position: refs/heads/master@{#576095}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .