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

Issue 374573006: Force enterprise enrollment flow upon detection of inconsistent state. (Closed)

Created:
6 years, 5 months ago by Thiemo Nagel
Modified:
6 years, 5 months 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@master
Project:
chromium
Visibility:
Public.

Description

Force enterprise enrollment flow upon detection of inconsistent state. At the time LoginDisplayHostImpl decides whether enrollment flow is to be started, policy hasn't been read yet, so LoginDisplayHostImpl is not in a position to decide whether recovery is required. To work around this, upon policy load on machines requiring recovery, a flag is stored in prefs which is accessed by LoginDisplayHostImpl early during (next) boot. Enrollment recovery depends on the availability of the machine id and is silently skipped when the latter is missing. There'll be a separate CL to have session manager provide the machine id on devices that require recovery. BUG=389481 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282028

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Address Julian's comments. #

Patch Set 3 : Add ScopedTestingLocalState to fix DeviceCloudPolicyStoreChromeOSTest. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -17 lines) Patch
M chrome/browser/chromeos/login/startup_utils.h View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/startup_utils.cc View 3 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/ui/login_display_host_impl.cc View 1 2 3 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 4 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_initializer.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc View 1 3 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc View 3 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc View 1 2 3 chunks +5 lines, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Thiemo Nagel
Hi Julian and Pavel, could you please be so kind to take a look at ...
6 years, 5 months ago (2014-07-07 18:27:52 UTC) #1
pastarmovj
Some initial comments mostly nits though. https://codereview.chromium.org/374573006/diff/40001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc File chrome/browser/chromeos/login/ui/login_display_host_impl.cc (right): https://codereview.chromium.org/374573006/diff/40001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc#newcode1197 chrome/browser/chromeos/login/ui/login_display_host_impl.cc:1197: ( first_screen_name.empty() && ...
6 years, 5 months ago (2014-07-08 12:36:31 UTC) #2
dzhioev (left Google)
On 2014/07/08 12:36:31, pastarmovj wrote: > Some initial comments mostly nits though. > > https://codereview.chromium.org/374573006/diff/40001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc ...
6 years, 5 months ago (2014-07-08 13:03:16 UTC) #3
dzhioev (left Google)
Hi, Thiemo. Can you give me more context about what "spontaneously unenrolled" means? I thought ...
6 years, 5 months ago (2014-07-08 13:05:44 UTC) #4
Thiemo Nagel
On 2014/07/08 13:05:44, dzhioev wrote: > Hi, Thiemo. Can you give me more context about ...
6 years, 5 months ago (2014-07-08 13:43:50 UTC) #5
Thiemo Nagel
https://codereview.chromium.org/374573006/diff/40001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc File chrome/browser/chromeos/login/ui/login_display_host_impl.cc (right): https://codereview.chromium.org/374573006/diff/40001/chrome/browser/chromeos/login/ui/login_display_host_impl.cc#newcode1197 chrome/browser/chromeos/login/ui/login_display_host_impl.cc:1197: ( first_screen_name.empty() && oobe_complete && On 2014/07/08 12:36:31, pastarmovj ...
6 years, 5 months ago (2014-07-08 14:02:05 UTC) #6
dzhioev (left Google)
LGTM
6 years, 5 months ago (2014-07-08 16:27:38 UTC) #7
pastarmovj
LGTM but please test that enrollment into kiosk and retail modes work as expected before ...
6 years, 5 months ago (2014-07-09 08:48:58 UTC) #8
Thiemo Nagel
On 2014/07/09 08:48:58, pastarmovj wrote: > LGTM but please test that enrollment into kiosk and ...
6 years, 5 months ago (2014-07-09 11:36:58 UTC) #9
Thiemo Nagel
The CQ bit was checked by tnagel@chromium.org
6 years, 5 months ago (2014-07-09 11:37:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tnagel@chromium.org/374573006/100001
6 years, 5 months ago (2014-07-09 11:37:19 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium ...
6 years, 5 months ago (2014-07-09 13:34:51 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-09 14:04:28 UTC) #13
Message was sent while issue was closed.
Change committed as 282028

Powered by Google App Engine
This is Rietveld 408576698