Prevent crash when opening incognito link in bottom sheet
This change adds a TabModelSelectorObserver for the bottom sheet to observe tab model changed. If the tab model changes, the sheet is hidden. The sheet also no longer tries to peek when loading a URL since 'peek' is no longer the minimum state. This patch also includes a change to the open/close events which are now driven off of the sheet's height rather than its state. This prevents a crash where a URL is loaded and the sheet closes and immediately tries to re-peek. Bug: 832814 Change-Id: I41c88599b55a2b763dbaa94adca2117594b88f2a Reviewed-on: https://chromium-review.googlesource.com/1014712 Commit-Queue: Theresa <twellington@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#551786}
Showing
Please register or sign in to comment