• Sammie Quon's avatar
    splitview: Fix failing DCHECK in OnWindowActivated. · 48ac7e2a
    Sammie Quon authored
    This failed previously because when SnapWindow is called after ToggleOverview,
    it ends the overview start animations, which then activates the hidden
    overview textfield. This causes OnWindowActivated to be called before
    SnapWindow has finished, so IsSplitViewModeActive() still returns false.
    
    Test: tested with DCHECKS enabled
    Bug: 906707
    Change-Id: Ic7b99eb8642f8bf1cd1badaa6fa6c981127987a7
    Reviewed-on: https://chromium-review.googlesource.com/c/1342807
    Commit-Queue: Sammie Quon <sammiequon@chromium.org>
    Reviewed-by: default avatarXiaoqian Dai <xdai@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#609408}
    48ac7e2a
split_view_controller.cc 60.6 KB