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

Issue 2797743002: ash: Merge LoginStatus update code path (Closed)

Created:
3 years, 8 months ago by xiyuan
Modified:
3 years, 8 months ago
Reviewers:
msw, James Cook
CC:
chromium-reviews, sadrul, derat+watch_chromium.org, jam, darin-cc_chromium.org, oshima+watch_chromium.org, kalyank, davemoore+watch_chromium.org, James Cook
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: Merge LoginStatus update code path - Add LoginStatusChanged to SessionStateObserver; - Make SessionController fire LoginStatusChanged; - Shell call UpdateAfterLoginStatusChange on LoginStatusChanged; - Remove Shell::OnLoginStateChanged and notify ShellObserver in Shell::LoginStatusChanged; - Remove UpdateAfterLoginStatusChange calls from SystemTrayDelegateChromeOS and TestSessionControllerClient; - Remove Shell::OnLoginStateChanged calls from LoginLockStateNotifier since LoginStatusChanged should cover that; - Fix ash_shell_with_content that SessionController is not bound to its client; BUG=701193, 679450 Review-Url: https://codereview.chromium.org/2797743002 Cr-Commit-Position: refs/heads/master@{#462378} Committed: https://chromium.googlesource.com/chromium/src/+/233f4e71bd49e79e477ef3ba814d53e8036e3c50

Patch Set 1 #

Patch Set 2 : fix post unlock animation not run, and tests #

Total comments: 14

Patch Set 3 : for #2 comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -146 lines) Patch
M ash/common/session/session_controller.h View 1 2 5 chunks +12 lines, -3 lines 0 comments Download
M ash/common/session/session_controller.cc View 1 2 7 chunks +43 lines, -28 lines 0 comments Download
M ash/common/session/session_controller_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/session/session_state_observer.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M ash/common/system/user/tray_user.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M ash/common/test/test_session_controller_client.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M ash/mus/system_tray_delegate_mus.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/shell.h View 2 chunks +1 line, -4 lines 0 comments Download
M ash/shell.cc View 2 chunks +7 lines, -11 lines 0 comments Download
M ash/shell/content/client/shell_browser_main_parts.cc View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M ash/shell/example_session_controller_client.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/lock_state_controller.h View 1 2 chunks +0 lines, -4 lines 0 comments Download
M ash/wm/lock_state_controller.cc View 1 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/power/login_lock_state_notifier.cc View 3 chunks +0 lines, -23 lines 0 comments Download
M chrome/browser/chromeos/system/tray_accessibility_browsertest.cc View 1 2 5 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/session_controller_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/session_controller_client.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 4 chunks +0 lines, -19 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 7 chunks +0 lines, -29 lines 0 comments Download

Messages

Total messages: 26 (19 generated)
xiyuan
Could you help to review this? Removes Shell::UpdateAfterLoginStatusChange and Shell::OnLoginStateChanged calls from chrome. SessionController maintains ...
3 years, 8 months ago (2017-04-04 22:16:46 UTC) #11
msw
Wow, it's a bit complex, and tough to say for sure that everything should behave ...
3 years, 8 months ago (2017-04-05 00:15:47 UTC) #12
James Cook
Drive-by comments. Code looks good. I presume screen lock works OK manually. https://codereview.chromium.org/2797743002/diff/20001/ash/common/session/session_controller.h File ash/common/session/session_controller.h ...
3 years, 8 months ago (2017-04-05 00:16:24 UTC) #14
xiyuan
https://codereview.chromium.org/2797743002/diff/20001/ash/common/session/session_controller.h File ash/common/session/session_controller.h (right): https://codereview.chromium.org/2797743002/diff/20001/ash/common/session/session_controller.h#newcode99 ash/common/session/session_controller.h:99: LoginStatus GetLoginStatus() const; On 2017/04/05 00:16:24, James Cook wrote: ...
3 years, 8 months ago (2017-04-05 22:29:07 UTC) #16
James Cook
LGTM!
3 years, 8 months ago (2017-04-05 23:26:44 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/2797743002/40001
3 years, 8 months ago (2017-04-06 06:29:45 UTC) #23
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 07:00:53 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/233f4e71bd49e79e477ef3ba814d...

Powered by Google App Engine
This is Rietveld 408576698