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

Issue 2937553002: Create Mojo Struct for user information used in login/lock screen. (Closed)

Created:
3 years, 6 months ago by xiaoyinh(OOO Sep 11-29)
Modified:
3 years, 6 months ago
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, rkc
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Create Mojo Struct for user information used in login/lock screen. Introduce a Mojo struct LoginUserInfo for login users which include basic information ash::mojom::UserInfo and other login/lock screen specific information. UserSelectionScreen will populate LoginUserInfo and send it back to lockscreen views. Compare to the user info we sent to current UI, LoginUserInfo have almost everything except: 1. user's gaiaId, which doesn't seem to be used by current UI.(user_pod_row.js) 2. public session information which doesn't exist on lockscreen. We might need it for login screen later and I have added a TODO for this. BUG=729687 Review-Url: https://codereview.chromium.org/2937553002 Cr-Commit-Position: refs/heads/master@{#481070} Committed: https://chromium.googlesource.com/chromium/src/+/820778c575fe891e178b0671a92817a2e54ba197

Patch Set 1 #

Patch Set 2 : populate user's avatar #

Total comments: 24

Patch Set 3 : comments and rebase #

Total comments: 17

Patch Set 4 : comments and rebase #

Patch Set 5 : Add user behavior enum in mojom file #

Total comments: 1

Patch Set 6 : reuse enum defined in mojom file. #

Total comments: 8

Patch Set 7 : comments and rebase #

Total comments: 4

Patch Set 8 : Move enum AuthType to a new mojom file #

Patch Set 9 : update comments in user_pod_row.js #

Patch Set 10 : fix trybot failure #

Total comments: 1

Patch Set 11 : try to fix compile error #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+455 lines, -287 lines) Patch
M ash/login/lock_screen_controller.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M ash/login/lock_screen_controller.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -4 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M ash/public/interfaces/lock_screen.mojom View 1 2 3 4 5 6 7 2 chunks +4 lines, -27 lines 0 comments Download
A ash/public/interfaces/login_user_info.mojom View 1 2 3 4 5 6 7 1 chunk +55 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/app_launch_signin_screen.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/lock/views_screen_locker.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/screens/user_selection_screen.h View 1 2 3 4 5 6 7 5 chunks +18 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/screens/user_selection_screen.cc View 1 2 3 4 5 6 7 15 chunks +170 lines, -62 lines 0 comments Download
M chrome/browser/chromeos/login/ui/views/user_board_view.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/user_selection_screen_proxy.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/user_selection_screen_proxy.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/users/multi_profile_user_controller.h View 1 2 3 4 5 6 3 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/login/users/multi_profile_user_controller.cc View 1 2 3 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/screenlock_private/screenlock_private_api.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/screenlock_private/screenlock_private_api.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/screenlock_private/screenlock_private_apitest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/signin/easy_unlock_app_manager.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/signin/easy_unlock_auth_attempt.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/signin/easy_unlock_auth_attempt_unittest.cc View 1 2 3 4 5 6 7 6 chunks +12 lines, -7 lines 0 comments Download
M chrome/browser/signin/easy_unlock_screenlock_state_handler.cc View 1 2 3 4 5 6 7 3 chunks +13 lines, -21 lines 0 comments Download
M chrome/browser/signin/easy_unlock_screenlock_state_handler_unittest.cc View 1 2 3 4 5 6 7 25 chunks +33 lines, -33 lines 0 comments Download
M chrome/browser/ui/ash/lock_screen_client.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/lock_screen_client.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_userlist_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/supervised_user_creation_screen_handler.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -11 lines 0 comments Download
M components/proximity_auth/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M components/proximity_auth/fake_lock_handler.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M components/proximity_auth/fake_lock_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M components/proximity_auth/proximity_auth_system.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/proximity_auth/proximity_auth_system_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A components/proximity_auth/public/interfaces/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +11 lines, -0 lines 0 comments Download
A components/proximity_auth/public/interfaces/OWNERS View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A components/proximity_auth/public/interfaces/auth_type.mojom View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
M components/proximity_auth/screenlock_bridge.h View 1 2 3 4 5 6 7 3 chunks +4 lines, -13 lines 0 comments Download
M components/proximity_auth/unlock_manager.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M components/proximity_auth/unlock_manager_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M components/proximity_auth/unlock_manager_impl.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M components/proximity_auth/unlock_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 13 chunks +15 lines, -16 lines 0 comments Download
M ui/login/account_picker/md_user_pod_row.js View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M ui/login/account_picker/user_pod_row.js View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 75 (52 generated)
xiaoyinh(OOO Sep 11-29)
Hi, could you help to review it? Thanks!
3 years, 6 months ago (2017-06-13 00:09:57 UTC) #12
jdufault
https://codereview.chromium.org/2937553002/diff/20001/ash/public/interfaces/login_user_info.mojom File ash/public/interfaces/login_user_info.mojom (right): https://codereview.chromium.org/2937553002/diff/20001/ash/public/interfaces/login_user_info.mojom#newcode34 ash/public/interfaces/login_user_info.mojom:34: bool is_desktop_user; It'd be good to document all of ...
3 years, 6 months ago (2017-06-13 17:41:54 UTC) #15
xiyuan
https://codereview.chromium.org/2937553002/diff/20001/chrome/browser/chromeos/login/screens/user_selection_screen.cc File chrome/browser/chromeos/login/screens/user_selection_screen.cc (right): https://codereview.chromium.org/2937553002/diff/20001/chrome/browser/chromeos/login/screens/user_selection_screen.cc#newcode182 chrome/browser/chromeos/login/screens/user_selection_screen.cc:182: bool CanRemoveUser(bool is_single_user, user_manager::User* user) { nit: const user_manager::User* ...
3 years, 6 months ago (2017-06-13 18:00:18 UTC) #16
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2937553002/diff/20001/ash/public/interfaces/login_user_info.mojom File ash/public/interfaces/login_user_info.mojom (right): https://codereview.chromium.org/2937553002/diff/20001/ash/public/interfaces/login_user_info.mojom#newcode34 ash/public/interfaces/login_user_info.mojom:34: bool is_desktop_user; On 2017/06/13 17:41:54, jdufault wrote: > It'd ...
3 years, 6 months ago (2017-06-13 22:21:32 UTC) #19
jdufault
https://codereview.chromium.org/2937553002/diff/40001/ash/public/interfaces/login_user_info.mojom File ash/public/interfaces/login_user_info.mojom (right): https://codereview.chromium.org/2937553002/diff/40001/ash/public/interfaces/login_user_info.mojom#newcode36 ash/public/interfaces/login_user_info.mojom:36: // True if this user is a desktop user. ...
3 years, 6 months ago (2017-06-14 02:20:42 UTC) #22
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2937553002/diff/40001/ash/public/interfaces/login_user_info.mojom File ash/public/interfaces/login_user_info.mojom (right): https://codereview.chromium.org/2937553002/diff/40001/ash/public/interfaces/login_user_info.mojom#newcode36 ash/public/interfaces/login_user_info.mojom:36: // True if this user is a desktop user. ...
3 years, 6 months ago (2017-06-15 18:39:38 UTC) #25
jdufault
https://codereview.chromium.org/2937553002/diff/40001/ash/public/interfaces/login_user_info.mojom File ash/public/interfaces/login_user_info.mojom (right): https://codereview.chromium.org/2937553002/diff/40001/ash/public/interfaces/login_user_info.mojom#newcode55 ash/public/interfaces/login_user_info.mojom:55: string multiprofile_policy; On 2017/06/15 18:39:37, xiaoyinh wrote: > On ...
3 years, 6 months ago (2017-06-15 19:00:02 UTC) #26
xiaoyinh(OOO Sep 11-29)
On 2017/06/15 19:00:02, jdufault wrote: > https://codereview.chromium.org/2937553002/diff/40001/ash/public/interfaces/login_user_info.mojom > File ash/public/interfaces/login_user_info.mojom (right): > > https://codereview.chromium.org/2937553002/diff/40001/ash/public/interfaces/login_user_info.mojom#newcode55 > ...
3 years, 6 months ago (2017-06-15 19:07:30 UTC) #27
xiaoyinh(OOO Sep 11-29)
On 2017/06/15 19:07:30, xiaoyinh wrote: > On 2017/06/15 19:00:02, jdufault wrote: > > > https://codereview.chromium.org/2937553002/diff/40001/ash/public/interfaces/login_user_info.mojom ...
3 years, 6 months ago (2017-06-16 21:03:38 UTC) #32
jdufault
https://codereview.chromium.org/2937553002/diff/80001/ash/public/interfaces/login_user_info.mojom File ash/public/interfaces/login_user_info.mojom (right): https://codereview.chromium.org/2937553002/diff/80001/ash/public/interfaces/login_user_info.mojom#newcode22 ash/public/interfaces/login_user_info.mojom:22: // Keep in sync with the enum in multi_profile_user_controller.h ...
3 years, 6 months ago (2017-06-16 21:07:23 UTC) #33
xiaoyinh(OOO Sep 11-29)
On 2017/06/16 21:07:23, jdufault wrote: > https://codereview.chromium.org/2937553002/diff/80001/ash/public/interfaces/login_user_info.mojom > File ash/public/interfaces/login_user_info.mojom (right): > > https://codereview.chromium.org/2937553002/diff/80001/ash/public/interfaces/login_user_info.mojom#newcode22 > ...
3 years, 6 months ago (2017-06-16 21:58:24 UTC) #36
jdufault
lgtm https://codereview.chromium.org/2937553002/diff/100001/ash/public/interfaces/login_user_info.mojom File ash/public/interfaces/login_user_info.mojom (right): https://codereview.chromium.org/2937553002/diff/100001/ash/public/interfaces/login_user_info.mojom#newcode24 ash/public/interfaces/login_user_info.mojom:24: UNRESTRICTED, Does mojo allow us to explicitly give ...
3 years, 6 months ago (2017-06-16 22:18:09 UTC) #37
xiyuan
lgtm https://codereview.chromium.org/2937553002/diff/100001/ash/public/interfaces/login_user_info.mojom File ash/public/interfaces/login_user_info.mojom (right): https://codereview.chromium.org/2937553002/diff/100001/ash/public/interfaces/login_user_info.mojom#newcode24 ash/public/interfaces/login_user_info.mojom:24: UNRESTRICTED, On 2017/06/16 22:18:09, jdufault wrote: > Does ...
3 years, 6 months ago (2017-06-16 23:05:41 UTC) #38
xiaoyinh(OOO Sep 11-29)
+jamescook@ for ash/public/ and chrome/browser/ui/ash +rsesek@ for lock_screen.mojom and login_user_info.mojom Please take a look. Thanks! ...
3 years, 6 months ago (2017-06-19 17:29:50 UTC) #44
James Cook
https://codereview.chromium.org/2937553002/diff/120001/ash/public/interfaces/login_user_info.mojom File ash/public/interfaces/login_user_info.mojom (right): https://codereview.chromium.org/2937553002/diff/120001/ash/public/interfaces/login_user_info.mojom#newcode12 ash/public/interfaces/login_user_info.mojom:12: enum AuthType { We should share this enum between ...
3 years, 6 months ago (2017-06-19 18:04:52 UTC) #45
xiaoyinh(OOO Sep 11-29)
https://codereview.chromium.org/2937553002/diff/120001/ash/public/interfaces/login_user_info.mojom File ash/public/interfaces/login_user_info.mojom (right): https://codereview.chromium.org/2937553002/diff/120001/ash/public/interfaces/login_user_info.mojom#newcode12 ash/public/interfaces/login_user_info.mojom:12: enum AuthType { On 2017/06/19 18:04:52, James Cook wrote: ...
3 years, 6 months ago (2017-06-20 17:21:54 UTC) #56
James Cook
ash and chrome/browser/ui/ash LGTM, assuming the bot failures are not anything serious https://codereview.chromium.org/2937553002/diff/180001/components/proximity_auth/public/interfaces/auth_type.mojom File components/proximity_auth/public/interfaces/auth_type.mojom ...
3 years, 6 months ago (2017-06-20 17:37:46 UTC) #59
xiyuan
enum auth_type mojo and proximity_auth lgtm Please fix bots compile.
3 years, 6 months ago (2017-06-20 17:52:59 UTC) #60
Robert Sesek
mojom lgtm
3 years, 6 months ago (2017-06-20 20:05:06 UTC) #63
xiaoyinh(OOO Sep 11-29)
Trybots are all green now:) +reillyg for chrome/browser/extensions/api/screenlock_private/* reillyg@, could you help to take a ...
3 years, 6 months ago (2017-06-20 21:13:11 UTC) #67
Reilly Grant (use Gerrit)
chrome/browser/extensions lgtm
3 years, 6 months ago (2017-06-20 23:00:58 UTC) #68
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/2937553002/220001
3 years, 6 months ago (2017-06-20 23:10:46 UTC) #71
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 01:43:26 UTC) #75
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/820778c575fe891e178b0671a928...

Powered by Google App Engine
This is Rietveld 408576698