Android: Fix a potential exception in accessing FullscreenManager
The reported bug shows ChromeActivity.getFullscreenManager can be called while the activity is being destroyed, which will cause an IllegalStateException. Such incidents should be prevented from happening by checking the activity state before calling the API. This check existed in TabWebContentsDelegateAndroid (https://crrev.com/c/1547745) but removed in the course of refactoring (https://crrev.com/c/1621466). This CL puts it back. Bug: 990987 Change-Id: I0d9700e6d60acd129904a9f23488d211df795731 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1743286Reviewed-by:Theresa <twellington@chromium.org> Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Cr-Commit-Position: refs/heads/master@{#685056}
Showing
Please register or sign in to comment