Do not close the app-list search box on closing the entire view.

The change of the view causes redrawing during the animation which
causes stuttering. Either way it's going to be closed, it does
not have to change the view.

On nocturne, this improves the closing animation smoothness
significantly when searched. With EnableBackgroundBlur,
LauncherAnimationsTest.FullscreenSearch's Close smoothness will
be improved from 13-33 to 73-93.

Bug: 961467
Test: LauncherAnimationsTest
Change-Id: If6454a7b3200f0f42d15c50b6f035e5d3da4f3b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1611200
Reviewed-by: Alex Newcomer <newcomer@chromium.org>
Commit-Queue: Jun Mukai <mukai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#660005}
1 file changed