Better handle session start in AppListControllerImpl
A folow-up on CL:1988989 with a couple of things I realized can be done better: * use presenter_.GetTargetVisibility() to check if app list has been previously shown * Show app list in tablet mode using HomeScreenController::Show (it handles some additional tablet mode specific things - e.g. sets the show source) * Use last_target_visible_ to check if app list should be visible when session changes to active (instead of trying to recalculate target visibility state again) BUG=1038512 Change-Id: I6a1aa7613935ed042a45b4aa622bd7cf2203a071 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1992242Reviewed-by:Alex Newcomer <newcomer@chromium.org> Commit-Queue: Toni Baržić <tbarzic@chromium.org> Cr-Commit-Position: refs/heads/master@{#729962}
Showing
Please register or sign in to comment