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

Issue 2829813002: cros: Move IsUserSupervised and IsUserChild off SystemTrayDelegate (Closed)

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

Description

cros: Move IsUserSupervised and IsUserChild off SystemTrayDelegate Put them on SessionController so they work properly in mustash. Remove redundant TraySupervisedTest for login crash (the underlying tray notification code has been refactored so that the crashing code path no longer exists, and the other test covers the login case well enough). See crbug.com/275697 for the crash. Eliminate ScopedInitialLoginStatus, which was only used by the redundant test. BUG=712799 TEST=ash_unittests, added to SessionControllerTest, manually testing of login with supervised users Review-Url: https://codereview.chromium.org/2829813002 Cr-Commit-Position: refs/heads/master@{#465797} Committed: https://chromium.googlesource.com/chromium/src/+/0e518b6113db1f4d0c30e2831288a08bc457f639

Patch Set 1 #

Total comments: 9

Patch Set 2 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -120 lines) Patch
M ash/session/session_controller.h View 1 chunk +7 lines, -0 lines 0 comments Download
M ash/session/session_controller.cc View 2 chunks +18 lines, -0 lines 0 comments Download
M ash/session/session_controller_unittest.cc View 1 chunk +21 lines, -0 lines 0 comments Download
M ash/shelf/wm_shelf.cc View 2 chunks +2 lines, -1 line 0 comments Download
M ash/system/supervised/tray_supervised_user.cc View 5 chunks +8 lines, -9 lines 0 comments Download
M ash/system/supervised/tray_supervised_user_unittest.cc View 1 3 chunks +16 lines, -26 lines 0 comments Download
M ash/system/tiles/tray_tiles_unittest.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M ash/system/tray/system_tray_delegate.h View 1 chunk +3 lines, -9 lines 0 comments Download
M ash/system/tray/system_tray_delegate.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M ash/system/user/tray_user.cc View 3 chunks +3 lines, -4 lines 0 comments Download
M ash/system/user/user_card_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/test/test_session_controller_client.h View 1 2 chunks +5 lines, -2 lines 0 comments Download
M ash/test/test_session_controller_client.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M ash/test/test_system_tray_delegate.h View 1 3 chunks +1 line, -15 lines 0 comments Download
M ash/test/test_system_tray_delegate.cc View 4 chunks +2 lines, -29 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/system_tray_delegate_chromeos.cc View 3 chunks +8 lines, -10 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (9 generated)
James Cook
xiyuan, please take a look. I plan to migrate the other methods in a follow-up ...
3 years, 8 months ago (2017-04-19 20:31:57 UTC) #2
xiyuan
lgtm https://codereview.chromium.org/2829813002/diff/1/ash/session/session_controller.h File ash/session/session_controller.h (right): https://codereview.chromium.org/2829813002/diff/1/ash/session/session_controller.h#newcode93 ash/session/session_controller.h:93: bool IsUserChild() const; On 2017/04/19 20:31:57, James Cook ...
3 years, 8 months ago (2017-04-19 20:58:00 UTC) #5
James Cook
Thanks for the quick review. https://codereview.chromium.org/2829813002/diff/1/ash/session/session_controller.h File ash/session/session_controller.h (right): https://codereview.chromium.org/2829813002/diff/1/ash/session/session_controller.h#newcode93 ash/session/session_controller.h:93: bool IsUserChild() const; On ...
3 years, 8 months ago (2017-04-19 22:16:38 UTC) #8
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/2829813002/20001
3 years, 8 months ago (2017-04-19 22:17:39 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-19 23:00:38 UTC) #14
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/0e518b6113db1f4d0c30e2831288...

Powered by Google App Engine
This is Rietveld 408576698