[Start] Preview page shouldn't be seen on switching to another tab.
The bug was caused by cleaning up suppression tokens by the StartSurfaceStateObserver after leaving the start surface. In this CL, the following changes are made: 1) Two observers, StateObserver and the HintlessActivityTabObserver, share the same token to handle the suppression/unsuppression of the bottom sheet for tab switcher. 2) The suppression is done by the first observer who notices the tab switcher is shown. The token is reset after suppression to guarantee it can be used again to suppress the sheet. 3) Clearing up requests when transit from a tab to Start surface. This prevents the preview page (a kind of bottom sheet) from being shown on the Start surface. Bug: 1151804 Change-Id: I42a9405e46f863971dd439f03d31fed8eda46524 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2553286 Commit-Queue: Xi Han <hanxi@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Reviewed-by:
Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#832020}
Showing
Please register or sign in to comment