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

Issue 168813002: Refactor user pods to use authType property for distinct authentication modes. (Closed)

Created:
6 years, 10 months ago by Tim Song
Modified:
6 years, 10 months ago
Reviewers:
xiyuan, Nikita (slow)
CC:
chromium-reviews, nkostylev+watch_chromium.org, pam+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Refactor user pods to use authType property for distinct authentication modes. The authType of the user pod determines the authentication method to sign in or unlock from the account picker screen. This refactoring aims to unify the current two modes the user pod can use, and make the user pod more extensible for other modes. For example, the user pod may currently authenticate using a password or online GAIA signin. This CL introduces a full-pod user click authType, and a PIN code authType will be implemented in the future (see bug). This CL also adds plumbing for the authType to be set by the ScreenLocker for the chrome.screenlockPrivate API. BUG=344179 TEST=visual inspection Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252762

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 25

Patch Set 5 : fixes #

Patch Set 6 : rename to offline password #

Patch Set 7 : #

Patch Set 8 : find user for auth attempt #

Total comments: 2

Patch Set 9 : user users_ #

Patch Set 10 : upload issue #

Patch Set 11 : update mock #

Patch Set 12 : move screenlockPrivate stuff to other CL #

Total comments: 11

Patch Set 13 : fixes #

Patch Set 14 : #

Patch Set 15 : fix ScreenLockerTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+482 lines, -91 lines) Patch
M chrome/browser/chromeos/login/login_display.h View 1 2 3 4 2 chunks +26 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/mock_login_display.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/screen_locker.h View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/screen_locker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +53 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/screen_locker_delegate.h View 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/webui_login_display.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/webui_login_display.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/webui_screen_locker.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/webui_screen_locker.cc View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_account_picker.js View 3 chunks +22 lines, -10 lines 0 comments Download
M chrome/browser/resources/chromeos/login/user_pod_row.css View 1 2 3 4 5 7 chunks +29 lines, -5 lines 0 comments Download
M chrome/browser/resources/chromeos/login/user_pod_row.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 chunks +178 lines, -54 lines 0 comments Download
M chrome/browser/resources/chromeos/login/user_pod_template.html View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/locally_managed_user_creation_screen_handler.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/screenlock_icon_provider.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/screenlock_icon_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h View 1 2 3 4 4 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +58 lines, -18 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Tim Song
Please take a look at the bug for the mocks of what I'm trying to ...
6 years, 10 months ago (2014-02-16 07:08:17 UTC) #1
xiyuan
https://codereview.chromium.org/168813002/diff/120001/chrome/browser/chromeos/login/login_display.h File chrome/browser/chromeos/login/login_display.h (right): https://codereview.chromium.org/168813002/diff/120001/chrome/browser/chromeos/login/login_display.h#newcode23 chrome/browser/chromeos/login/login_display.h:23: class ScreenLocker; nit: This seems not used. https://codereview.chromium.org/168813002/diff/120001/chrome/browser/chromeos/login/login_display.h#newcode32 chrome/browser/chromeos/login/login_display.h:32: ...
6 years, 10 months ago (2014-02-16 18:38:14 UTC) #2
Tim Song
https://codereview.chromium.org/168813002/diff/120001/chrome/browser/chromeos/login/login_display.h File chrome/browser/chromeos/login/login_display.h (right): https://codereview.chromium.org/168813002/diff/120001/chrome/browser/chromeos/login/login_display.h#newcode23 chrome/browser/chromeos/login/login_display.h:23: class ScreenLocker; On 2014/02/16 18:38:14, xiyuan wrote: > nit: ...
6 years, 10 months ago (2014-02-18 23:32:44 UTC) #3
xiyuan
https://codereview.chromium.org/168813002/diff/120001/chrome/browser/chromeos/login/screen_locker.cc File chrome/browser/chromeos/login/screen_locker.cc (right): https://codereview.chromium.org/168813002/diff/120001/chrome/browser/chromeos/login/screen_locker.cc#newcode266 chrome/browser/chromeos/login/screen_locker.cc:266: UserManager::Get()->GetActiveUser()); On 2014/02/18 23:32:44, Tim Song wrote: > On ...
6 years, 10 months ago (2014-02-19 00:17:51 UTC) #4
Tim Song
https://codereview.chromium.org/168813002/diff/120001/chrome/browser/chromeos/login/screen_locker.cc File chrome/browser/chromeos/login/screen_locker.cc (right): https://codereview.chromium.org/168813002/diff/120001/chrome/browser/chromeos/login/screen_locker.cc#newcode266 chrome/browser/chromeos/login/screen_locker.cc:266: UserManager::Get()->GetActiveUser()); On 2014/02/19 00:17:52, xiyuan wrote: > On 2014/02/18 ...
6 years, 10 months ago (2014-02-19 19:26:57 UTC) #5
xiyuan
LGTM https://codereview.chromium.org/168813002/diff/120001/chrome/browser/chromeos/login/screen_locker.cc File chrome/browser/chromeos/login/screen_locker.cc (right): https://codereview.chromium.org/168813002/diff/120001/chrome/browser/chromeos/login/screen_locker.cc#newcode270 chrome/browser/chromeos/login/screen_locker.cc:270: router->OnAuthAttempted(auth_type, user_context.password); On 2014/02/19 19:26:57, Tim Song wrote: ...
6 years, 10 months ago (2014-02-19 21:48:43 UTC) #6
Tim Song
https://codereview.chromium.org/168813002/diff/570001/chrome/browser/chromeos/login/screen_locker.cc File chrome/browser/chromeos/login/screen_locker.cc (right): https://codereview.chromium.org/168813002/diff/570001/chrome/browser/chromeos/login/screen_locker.cc#newcode271 chrome/browser/chromeos/login/screen_locker.cc:271: UserManager::Get()->FindUser(user_context.username); On 2014/02/19 21:48:44, xiyuan wrote: > nit: It's ...
6 years, 10 months ago (2014-02-20 00:06:45 UTC) #7
Nikita (slow)
lgtm with nits https://codereview.chromium.org/168813002/diff/380002/chrome/browser/chromeos/login/login_display.h File chrome/browser/chromeos/login/login_display.h (right): https://codereview.chromium.org/168813002/diff/380002/chrome/browser/chromeos/login/login_display.h#newcode28 chrome/browser/chromeos/login/login_display.h:28: enum AuthType { It feels that ...
6 years, 10 months ago (2014-02-20 15:12:17 UTC) #8
Tim Song
https://codereview.chromium.org/168813002/diff/380002/chrome/browser/chromeos/login/webui_login_display.cc File chrome/browser/chromeos/login/webui_login_display.cc (right): https://codereview.chromium.org/168813002/diff/380002/chrome/browser/chromeos/login/webui_login_display.cc#newcode158 chrome/browser/chromeos/login/webui_login_display.cc:158: // Set the authentication type to be used on ...
6 years, 10 months ago (2014-02-20 22:14:00 UTC) #9
Tim Song
The CQ bit was checked by tengs@chromium.org
6 years, 10 months ago (2014-02-21 01:52:25 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/168813002/830001
6 years, 10 months ago (2014-02-21 01:54:53 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-21 02:45:39 UTC) #12
commit-bot: I haz the power
Retried try job too often on ios_rel_device_ninja for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_rel_device_ninja&number=2952
6 years, 10 months ago (2014-02-21 02:45:40 UTC) #13
Tim Song
The CQ bit was checked by tengs@chromium.org
6 years, 10 months ago (2014-02-21 02:46:57 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/168813002/830001
6 years, 10 months ago (2014-02-21 02:48:09 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-21 02:54:39 UTC) #16
commit-bot: I haz the power
Retried try job too often on ios_rel_device_ninja for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_rel_device_ninja&number=2958
6 years, 10 months ago (2014-02-21 02:54:40 UTC) #17
Tim Song
The CQ bit was checked by tengs@chromium.org
6 years, 10 months ago (2014-02-21 03:01:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/168813002/830001
6 years, 10 months ago (2014-02-21 03:02:07 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-21 05:09:24 UTC) #20
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=204170
6 years, 10 months ago (2014-02-21 05:09:24 UTC) #21
Tim Song
The CQ bit was checked by tengs@chromium.org
6 years, 10 months ago (2014-02-21 19:36:39 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/168813002/1100001
6 years, 10 months ago (2014-02-21 19:40:29 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-21 22:03:38 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=268030
6 years, 10 months ago (2014-02-21 22:03:39 UTC) #25
Tim Song
The CQ bit was checked by tengs@chromium.org
6 years, 10 months ago (2014-02-21 22:29:57 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/168813002/1100001
6 years, 10 months ago (2014-02-21 22:31:23 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-22 00:49:24 UTC) #28
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=268249
6 years, 10 months ago (2014-02-22 00:49:25 UTC) #29
Tim Song
The CQ bit was checked by tengs@chromium.org
6 years, 10 months ago (2014-02-22 02:33:02 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/168813002/1100001
6 years, 10 months ago (2014-02-22 02:33:53 UTC) #31
commit-bot: I haz the power
6 years, 10 months ago (2014-02-22 07:51:57 UTC) #32
Message was sent while issue was closed.
Change committed as 252762

Powered by Google App Engine
This is Rietveld 408576698