Android: Stop accessing BrowserControlsManager on destroyed Activity
There are several classes accessing BrowserControlsManager on Chrome- Activity already (being) destroyed. These are abnormal situations where previously BCM has never been instantiated. Rather than letting the flow go through and an exception be thrown, this CL adds the check against the state of the Activity before getting BrowserControlsManager, to prevent the crash in all the reported cases. Bug: 990987 Change-Id: I5fb26495c80af471eeef1929573bd9ede8d3bd09 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2326551Reviewed-by:Theresa <twellington@chromium.org> Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Cr-Commit-Position: refs/heads/master@{#793479}
Showing
Please register or sign in to comment