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

Issue 2830933002: cros: Use SessionController for lock starting code (Closed)

Created:
3 years, 8 months ago by xiyuan
Modified:
3 years, 8 months ago
Reviewers:
Tom Sepez, James Cook
CC:
chromium-reviews, alemate+watch_chromium.org, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, achuith+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, oshima+watch_chromium.org, kalyank, darin (slow to review), davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cros: Use SessionController for lock starting code - Add SessionController::StartLock to start locking on ash side and returns when post lock animation is finished and ash is fully locked, or aborted when ash exits before the lock code goes thread; - Update ScreenLocker/WebUIScreenLocker to use StartLock instead of ash::LockStateController to start locking and observe lock animation; BUG=678988 Review-Url: https://codereview.chromium.org/2830933002 Cr-Commit-Position: refs/heads/master@{#466159} Committed: https://chromium.googlesource.com/chromium/src/+/7f80c700a7f188fc1aa30713c4a486138f957c69

Patch Set 1 #

Patch Set 2 : update comment #

Total comments: 8

Patch Set 3 : RunLockAnimation -> StartLock and add a bool |locked| to return, fix tests, fix nits #

Total comments: 2

Patch Set 4 : fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -41 lines) Patch
M ash/public/interfaces/session_controller.mojom View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M ash/session/session_controller.h View 1 2 4 chunks +13 lines, -0 lines 0 comments Download
M ash/session/session_controller.cc View 1 2 3 chunks +25 lines, -2 lines 0 comments Download
M ash/wm/lock_state_controller.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ash/wm/lock_state_controller.cc View 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/lock/screen_locker.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/lock/screen_locker.cc View 1 2 3 5 chunks +17 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/login/lock/webui_screen_locker.h View 1 2 4 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/lock/webui_screen_locker.cc View 1 2 5 chunks +9 lines, -18 lines 0 comments Download
M chrome/browser/ui/ash/session_controller_client.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/session_controller_client.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 27 (17 generated)
xiyuan
3 years, 8 months ago (2017-04-19 22:37:27 UTC) #4
James Cook
LGTM. Lemme know if you want me to look again after sorting out the test ...
3 years, 8 months ago (2017-04-19 23:13:12 UTC) #6
Tom Sepez
https://codereview.chromium.org/2830933002/diff/20001/ash/public/interfaces/session_controller.mojom File ash/public/interfaces/session_controller.mojom (right): https://codereview.chromium.org/2830933002/diff/20001/ash/public/interfaces/session_controller.mojom#newcode147 ash/public/interfaces/session_controller.mojom:147: // the post-lock animation finishes and the system is ...
3 years, 8 months ago (2017-04-20 01:25:00 UTC) #9
xiyuan
The test failures are real. It could happen when lock fails (timeout somehow) and we ...
3 years, 8 months ago (2017-04-20 15:14:40 UTC) #10
xiyuan
Renamed RunLockAnimation to StartLock. Think it fits better with the added a |locked| bool to ...
3 years, 8 months ago (2017-04-20 18:23:59 UTC) #13
James Cook
still lgtm https://codereview.chromium.org/2830933002/diff/40001/ash/public/interfaces/session_controller.mojom File ash/public/interfaces/session_controller.mojom (right): https://codereview.chromium.org/2830933002/diff/40001/ash/public/interfaces/session_controller.mojom#newcode147 ash/public/interfaces/session_controller.mojom:147: // |locked| == true means that the ...
3 years, 8 months ago (2017-04-20 19:25:21 UTC) #14
Tom Sepez
lgtm
3 years, 8 months ago (2017-04-20 19:55:41 UTC) #17
xiyuan
https://codereview.chromium.org/2830933002/diff/40001/ash/public/interfaces/session_controller.mojom File ash/public/interfaces/session_controller.mojom (right): https://codereview.chromium.org/2830933002/diff/40001/ash/public/interfaces/session_controller.mojom#newcode147 ash/public/interfaces/session_controller.mojom:147: // |locked| == true means that the post-lock animation ...
3 years, 8 months ago (2017-04-20 21:00:26 UTC) #18
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/2830933002/60001
3 years, 8 months ago (2017-04-20 21:04:00 UTC) #24
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 22:10:46 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/7f80c700a7f188fc1aa30713c4a4...

Powered by Google App Engine
This is Rietveld 408576698