Android: Fix NPE around FullscreenManager
TabBrowserControlsOffsetHelper is Tab UserData which should not be accessed after the tab is destroyed. This was not taken into account when referenced in ChromeFullscreenManager. This CL adds the missing check against Tab for its state, and also ensures the tab reference in the manager is set to null on its destruction. Bug: 897922 Change-Id: I20f0c5e87de1b3c7025d88ccfc00b7d157c6975c Reviewed-on: https://chromium-review.googlesource.com/c/1297856 Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Reviewed-by:Ted Choc <tedchoc@chromium.org> Cr-Commit-Position: refs/heads/master@{#603412}
Showing
Please register or sign in to comment