VR: Prevent crash from double-removing black overlay.
The static member variable to keep track of whether the black overlay is added can fail when we switch Activities while entering VR when the black overlay is added. In practice without other bugs this should be borderline impossible to make happen, but it crops up now and again, like in the linked bug. We should instead just track the overlay per-activity. Bug: 850741 Change-Id: I8849786972f216d7b628e2c8938579261ecd66b6 Reviewed-on: https://chromium-review.googlesource.com/1091699Reviewed-by:Biao She <bshe@chromium.org> Commit-Queue: Michael Thiessen <mthiesse@chromium.org> Cr-Commit-Position: refs/heads/master@{#565639}
Showing
Please register or sign in to comment