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

Issue 696263003: Prevent login while cros settings are untrusted (Closed)

Created:
6 years, 1 month ago by bartfab (slow)
Modified:
6 years, 1 month ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@f_2_425574_add_protos_for_device_disabling_in_steady_state
Project:
chromium
Visibility:
Public.

Description

Prevent login while cros settings are untrusted This CL is a prerequisite for device disabling: If a device has been disabled by its owner, a corresponding bit will be set in cros settings. If that bit is set, the device should show a warning screen and prevent any sessions from being started. We could guarantee this by waiting for cros settings to become trusted and checking the bit before showing the login screen. However, that would increase the time-to-login-screen for all users. This CL takes a different approach. It allows the login screen to show but ensures that any login attempts made will wait until the cros settings have become trusted (checking for the device disabled bit will be added in a follow-up CL). To ensure that no login path bypasses this check, the various Login*() methods are made private, forcing everyone to go through the central, publich Login() method. BUG=425574 TEST=Added browser tests for all account types Committed: https://crrev.com/a92230048d293d6d5c8f49b940e91bd6bec3f2a5 Cr-Commit-Position: refs/heads/master@{#303073}

Patch Set 1 #

Patch Set 2 : Fix multi-login. Fix style guide violation: no else after return. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+440 lines, -190 lines) Patch
M chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc View 1 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.h View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 7 chunks +182 lines, -172 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller_browsertest.cc View 17 chunks +168 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/login/kiosk_browsertest.cc View 4 chunks +55 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_browsertest.cc View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 17 (4 generated)
bartfab (slow)
Hi Denis, Could you take a look at: chrome/browser/chromeos/login/* Hi Rahul, Could you take a ...
6 years, 1 month ago (2014-11-03 14:44:55 UTC) #2
rkc
lgtm chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.cc lgtm
6 years, 1 month ago (2014-11-03 22:42:50 UTC) #3
Mattias Nissler (ping if slow)
device_local_account_browsertest.cc LGTM On a related note: Are you positive we haven't waited for trusted settings ...
6 years, 1 month ago (2014-11-04 08:38:52 UTC) #4
bartfab (slow)
On 2014/11/04 08:38:52, Mattias Nissler wrote: > device_local_account_browsertest.cc LGTM > > On a related note: ...
6 years, 1 month ago (2014-11-04 08:51:06 UTC) #5
Mattias Nissler (ping if slow)
On 2014/11/04 08:51:06, bartfab wrote: > On 2014/11/04 08:38:52, Mattias Nissler wrote: > > device_local_account_browsertest.cc ...
6 years, 1 month ago (2014-11-04 09:12:44 UTC) #6
bartfab (slow)
> This code is rather hard to follow :-/ +1
6 years, 1 month ago (2014-11-04 10:59:36 UTC) #7
bartfab (slow)
Hi Denis, Friendly review ping. This is aimed at M40.
6 years, 1 month ago (2014-11-06 15:51:31 UTC) #8
Denis Kuznetsov (DE-MUC)
lgtm
6 years, 1 month ago (2014-11-06 17:09:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/696263003/1
6 years, 1 month ago (2014-11-06 17:12:47 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel/builds/9467)
6 years, 1 month ago (2014-11-06 18:28:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/696263003/20001
6 years, 1 month ago (2014-11-06 19:01:04 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-11-06 19:47:21 UTC) #16
commit-bot: I haz the power
6 years, 1 month ago (2014-11-06 19:47:57 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a92230048d293d6d5c8f49b940e91bd6bec3f2a5
Cr-Commit-Position: refs/heads/master@{#303073}

Powered by Google App Engine
This is Rietveld 408576698