cros: Fix unlock crash with multi-display
SessionController::RunUnlockAnimation expects the callback to be invoked only once. SessionStateAnimatorImpl uses the callback per animation per container. Mulit-display would have multiple containers involved hence multiple animation and callbacks. The multiple callback would cause a mojo CHECK failure. SessionStateAnimator should only run the callback once after all animations finish. The CL use a BarrierClosure to combine the animation callbacks. BUG=712422 TEST=SessionStateAnimatiorImplContainersTest.AnimationCallbackOnMultiDisplay Review-Url: https://codereview.chromium.org/2823343006 Cr-Commit-Position: refs/heads/master@{#465670}
Showing
Please register or sign in to comment