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

Issue 2510203002: Implement auto-login for ARC kiosk. (Closed)

Created:
4 years, 1 month ago by Sergey Poromov
Modified:
4 years, 1 month ago
CC:
chromium-reviews, alemate+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@kiosk_session
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement auto-login for ARC kiosk. If auto-login AccountId is present in ArcKioskAppManager because of a policy, ARC kiosk account session starts automatically. Instead of using Chrome Kiosk app sessions approach, ARC kiosks uses the same way as public sessions as they are configured through the same policies. The only difference is the source of user id and type of the user. As ARC kiosk user don't have user pods, GaiaScreen could be shown instead of SigninScreen and it should also report to ExistingUserController when it's ready. BUG=634497 Committed: https://crrev.com/56a933a3e9151523d89a3fca86b5347d52740031 Cr-Commit-Position: refs/heads/master@{#433336}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Unit tests build fix. #

Patch Set 3 : Fix unit tests. #

Total comments: 12

Patch Set 4 : Report GaiaScreenReady() from GaiaScreenHandler to ExistingUserController. #

Total comments: 2

Patch Set 5 : Update names and comments. #

Total comments: 2

Patch Set 6 : Stop timer if running in StartAutoLoginTimer() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -88 lines) Patch
M chrome/browser/chromeos/login/app_launch_signin_screen.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/app_launch_signin_screen.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.h View 1 2 3 4 9 chunks +31 lines, -18 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 18 chunks +92 lines, -49 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_auto_login_unittest.cc View 1 2 3 4 9 chunks +15 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_browsertest.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/lock/webui_screen_locker.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/lock/webui_screen_locker.cc View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_display.h View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/ui/webui_login_display.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/ui/webui_login_display.cc View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (24 generated)
Sergey Poromov
nkostylev@chromium.org: Please review changes in chrome/browser/chromeos/login/* alemate@chromium.org: Please review changes in chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc
4 years, 1 month ago (2016-11-17 21:46:45 UTC) #2
Alexander Alekseev
https://codereview.chromium.org/2510203002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc (right): https://codereview.chromium.org/2510203002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc#newcode552 chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc:552: Delegate()->OnSigninScreenReady(); This looks strange. Why do you need this?
4 years, 1 month ago (2016-11-17 22:49:33 UTC) #6
Sergey Poromov
https://codereview.chromium.org/2510203002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc (right): https://codereview.chromium.org/2510203002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc#newcode552 chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc:552: Delegate()->OnSigninScreenReady(); On 2016/11/17 22:49:33, Alexander Alekseev wrote: > This ...
4 years, 1 month ago (2016-11-17 22:55:34 UTC) #8
Alexander Alekseev
On 2016/11/17 22:55:34, Sergey Poromov wrote: > https://codereview.chromium.org/2510203002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc > File chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc (right): > > https://codereview.chromium.org/2510203002/diff/1/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc#newcode552 ...
4 years, 1 month ago (2016-11-17 23:04:59 UTC) #9
Nikita (slow)
https://codereview.chromium.org/2510203002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/2510203002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc#newcode948 chrome/browser/chromeos/login/existing_user_controller.cc:948: public_session_auto_login_account_id_ = EmptyAccountId(); nit: {} https://codereview.chromium.org/2510203002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc#newcode957 chrome/browser/chromeos/login/existing_user_controller.cc:957: arc_kiosk_auto_login_account_id_ = ...
4 years, 1 month ago (2016-11-18 15:12:59 UTC) #16
Sergey Poromov
https://codereview.chromium.org/2510203002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/2510203002/diff/1/chrome/browser/chromeos/login/existing_user_controller.cc#newcode948 chrome/browser/chromeos/login/existing_user_controller.cc:948: public_session_auto_login_account_id_ = EmptyAccountId(); On 2016/11/18 15:12:58, Nikita (slow) wrote: ...
4 years, 1 month ago (2016-11-18 15:47:27 UTC) #17
Nikita (slow)
https://codereview.chromium.org/2510203002/diff/60001/chrome/browser/chromeos/login/existing_user_controller.h File chrome/browser/chromeos/login/existing_user_controller.h (right): https://codereview.chromium.org/2510203002/diff/60001/chrome/browser/chromeos/login/existing_user_controller.h#newcode325 chrome/browser/chromeos/login/existing_user_controller.h:325: bool signin_screen_ready_ = false; nit: As discussed rename to ...
4 years, 1 month ago (2016-11-18 17:05:49 UTC) #23
Nikita (slow)
lgtm with this potential issue being resolved https://codereview.chromium.org/2510203002/diff/80001/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): https://codereview.chromium.org/2510203002/diff/80001/chrome/browser/chromeos/login/existing_user_controller.cc#newcode446 chrome/browser/chromeos/login/existing_user_controller.cc:446: StartAutoLoginTimer(); Both ...
4 years, 1 month ago (2016-11-18 17:09:35 UTC) #24
Sergey Poromov
https://codereview.chromium.org/2510203002/diff/60001/chrome/browser/chromeos/login/existing_user_controller.h File chrome/browser/chromeos/login/existing_user_controller.h (right): https://codereview.chromium.org/2510203002/diff/60001/chrome/browser/chromeos/login/existing_user_controller.h#newcode325 chrome/browser/chromeos/login/existing_user_controller.h:325: bool signin_screen_ready_ = false; On 2016/11/18 17:05:49, Nikita (slow) ...
4 years, 1 month ago (2016-11-18 18:56:11 UTC) #25
Alexander Alekseev
lgtm
4 years, 1 month ago (2016-11-18 22:50:07 UTC) #28
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/2510203002/100001
4 years, 1 month ago (2016-11-18 23:28:39 UTC) #32
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/2510203002/100001
4 years, 1 month ago (2016-11-18 23:39:40 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-18 23:58:07 UTC) #36
commit-bot: I haz the power
4 years, 1 month ago (2016-11-19 00:05:24 UTC) #38
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/56a933a3e9151523d89a3fca86b5347d52740031
Cr-Commit-Position: refs/heads/master@{#433336}

Powered by Google App Engine
This is Rietveld 408576698