Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Issue 2823343006: cros: Fix unlock crash with multi-display (Closed)

Created:
3 years, 8 months ago by xiyuan
Modified:
3 years, 8 months ago
Reviewers:
afakhry, James Cook
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

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} Committed: https://chromium.googlesource.com/chromium/src/+/52558bf8b2796a8e97c73a2351e23a1f8c45e423

Patch Set 1 #

Patch Set 2 : fix typo #

Total comments: 4

Patch Set 3 : add comment for test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -4 lines) Patch
M ash/wm/session_state_animator.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/session_state_animator_impl.cc View 2 chunks +4 lines, -1 line 0 comments Download
M ash/wm/session_state_animator_impl_unittest.cc View 1 2 2 chunks +22 lines, -1 line 0 comments Download

Messages

Total messages: 15 (9 generated)
xiyuan
3 years, 8 months ago (2017-04-19 08:25:49 UTC) #4
afakhry
I confirm this fix works. LGTM.
3 years, 8 months ago (2017-04-19 16:04:42 UTC) #7
James Cook
LGTM. Nice analysis afakhry! https://codereview.chromium.org/2823343006/diff/20001/ash/wm/session_state_animator.h File ash/wm/session_state_animator.h (right): https://codereview.chromium.org/2823343006/diff/20001/ash/wm/session_state_animator.h#newcode200 ash/wm/session_state_animator.h:200: base::Closure callback) = 0; Darn. ...
3 years, 8 months ago (2017-04-19 16:41:45 UTC) #8
xiyuan
https://codereview.chromium.org/2823343006/diff/20001/ash/wm/session_state_animator.h File ash/wm/session_state_animator.h (right): https://codereview.chromium.org/2823343006/diff/20001/ash/wm/session_state_animator.h#newcode200 ash/wm/session_state_animator.h:200: base::Closure callback) = 0; On 2017/04/19 16:41:45, James Cook ...
3 years, 8 months ago (2017-04-19 17:30:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2823343006/40001
3 years, 8 months ago (2017-04-19 17:30:49 UTC) #12
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 18:09:36 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/52558bf8b2796a8e97c73a2351e2...

Powered by Google App Engine
This is Rietveld 408576698