[EoC] Don't auto-peek when toolbar button is enabled
Also disables the peek state when the toolbar button is enabled and makes other functional updates to ContextualSuggestionsMediator so that the button works properly. Since the peek state is completely disabled, swipe-to-dismiss is enabled when the toolbar button is enabled. This enforces that swiping down on the open sheet will completely dismiss the UI. Finally, this CL updates FetchHelper to clear state in #onPageLoadStarted() instead of #onUpdateUrl() since the latter event may happen considerably later than the first. We need to hide the toolbar button as soon as a new page load begins. BUG=856403 Change-Id: Ic2f0c084d521a07acf985b8001480b7605dbd190 Reviewed-on: https://chromium-review.googlesource.com/1119250Reviewed-by:Matthew Jones <mdjones@chromium.org> Reviewed-by:
Becky Zhou <huayinz@chromium.org> Reviewed-by:
Filip Gorski <fgorski@chromium.org> Commit-Queue: Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#571689}
Showing
This diff is collapsed.
Please register or sign in to comment