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

Issue 438493002: Added ConsumerManagementService class to handle enroll state and device owner info in boot lockbox. (Closed)

Created:
6 years, 4 months ago by davidyu
Modified:
6 years, 4 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, 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@signin
Project:
chromium
Visibility:
Public.

Description

Added ConsumerManagementService class to handle enroll state and device owner info in boot lockbox. Also added the code to store owner info into boot lockbox during enrollment. BUG=chromium:353050 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288451

Patch Set 1 #

Patch Set 2 : Rename to ConsumerManagementService #

Patch Set 3 : Added GetOwner() and SetOwner(). #

Patch Set 4 : Added unit tests. #

Patch Set 5 : Added the code to store owner email into boot lockbox. #

Patch Set 6 : Call FlushAndSignBootAttributes() in SetOwner(). #

Total comments: 127

Patch Set 7 : #

Total comments: 24

Patch Set 8 : #

Patch Set 9 : Only create ConsumerManagementService when --enable-consumer-management is specified. #

Total comments: 8

Patch Set 10 : #

Total comments: 6

Patch Set 11 : #

Patch Set 12 : Fixed the broken test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+574 lines, -74 lines) Patch
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h View 1 2 3 4 5 6 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc View 1 2 3 4 5 6 7 8 5 chunks +13 lines, -3 lines 0 comments Download
A chrome/browser/chromeos/policy/consumer_management_service.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +97 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/consumer_management_service.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +125 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/consumer_management_service_unittest.cc View 1 2 3 4 5 6 7 1 chunk +167 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/header_bar.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/chromeos/login/header_bar.js View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/chromeos/login/screen_gaia_signin.js View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +23 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +73 lines, -31 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/oobe_ui.cc View 1 2 3 4 5 6 7 9 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 4 5 6 7 8 9 6 chunks +15 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/consumer_management_handler.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -2 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
davidyu
This CL depends on https://codereview.chromium.org/426153003/
6 years, 4 months ago (2014-07-31 04:37:39 UTC) #1
davidyu
On 2014/07/31 04:37:39, davidyu wrote: > This CL depends on https://codereview.chromium.org/426153003/ More context about this ...
6 years, 4 months ago (2014-07-31 04:40:20 UTC) #2
davidyu
On 2014/07/31 04:40:20, davidyu wrote: > On 2014/07/31 04:37:39, davidyu wrote: > > This CL ...
6 years, 4 months ago (2014-08-01 07:13:42 UTC) #3
davidyu
On 2014/08/01 07:13:42, davidyu wrote: > On 2014/07/31 04:40:20, davidyu wrote: > > On 2014/07/31 ...
6 years, 4 months ago (2014-08-04 05:54:25 UTC) #4
bartfab (slow)
On 2014/08/01 07:13:42, davidyu wrote: > On 2014/07/31 04:40:20, davidyu wrote: > > On 2014/07/31 ...
6 years, 4 months ago (2014-08-04 17:44:58 UTC) #5
bartfab (slow)
Looks good to me overall, just some comments/nits. https://codereview.chromium.org/438493002/diff/100001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc File chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc (right): https://codereview.chromium.org/438493002/diff/100001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc#newcode152 chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc:152: chromeos::CryptohomeClient* ...
6 years, 4 months ago (2014-08-04 18:44:57 UTC) #6
bartfab (slow)
Looks good to me overall, just some comments/nits. https://codereview.chromium.org/438493002/diff/100001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc File chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc (right): https://codereview.chromium.org/438493002/diff/100001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc#newcode152 chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc:152: chromeos::CryptohomeClient* ...
6 years, 4 months ago (2014-08-04 18:44:57 UTC) #7
davidyu
Wow! Thanks for so many comments! They are very appreciated. https://codereview.chromium.org/438493002/diff/100001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc File chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc (right): https://codereview.chromium.org/438493002/diff/100001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc#newcode152 ...
6 years, 4 months ago (2014-08-05 07:27:01 UTC) #8
davidyu
Hi Nikita, Can you help review chrome/browser/resources/chromeos/login/* and chrome/browser/ui/webui/* Hi Gabriel, Can you help review ...
6 years, 4 months ago (2014-08-05 07:38:59 UTC) #9
gab
chrome/browser/prefs/browser_prefs.cc lgtm stamp
6 years, 4 months ago (2014-08-05 15:15:12 UTC) #10
bartfab (slow)
Roger, could you take a look at the use of the owner e-mail address in ...
6 years, 4 months ago (2014-08-05 18:07:14 UTC) #11
davidyu
https://codereview.chromium.org/438493002/diff/100001/chrome/browser/chromeos/policy/consumer_management_service.cc File chrome/browser/chromeos/policy/consumer_management_service.cc (right): https://codereview.chromium.org/438493002/diff/100001/chrome/browser/chromeos/policy/consumer_management_service.cc#newcode42 chrome/browser/chromeos/policy/consumer_management_service.cc:42: prefs->CommitPendingWrite(); On 2014/08/05 18:07:13, bartfab wrote: > On 2014/08/05 ...
6 years, 4 months ago (2014-08-06 03:04:32 UTC) #12
Roger Tawa OOO till Jul 10th
Thanks Bartosz for pointing this CL to me. For the moment, since cros uses email ...
6 years, 4 months ago (2014-08-07 00:58:05 UTC) #13
davidyu
On 2014/08/07 00:58:05, Roger Tawa (build sheriff) wrote: > Thanks Bartosz for pointing this CL ...
6 years, 4 months ago (2014-08-07 07:44:02 UTC) #14
bartfab (slow)
https://codereview.chromium.org/438493002/diff/180001/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h File chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h (right): https://codereview.chromium.org/438493002/diff/180001/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h#newcode65 chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h:65: policy::ConsumerManagementService* management_service); Nit: I suggested renaming |consumer_management| to |management_service| ...
6 years, 4 months ago (2014-08-07 14:32:35 UTC) #15
davidyu
https://codereview.chromium.org/438493002/diff/180001/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h File chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h (right): https://codereview.chromium.org/438493002/diff/180001/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h#newcode65 chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h:65: policy::ConsumerManagementService* management_service); On 2014/08/07 14:32:35, bartfab wrote: > Nit: ...
6 years, 4 months ago (2014-08-08 03:56:25 UTC) #16
bartfab (slow)
lgtm
6 years, 4 months ago (2014-08-08 08:16:54 UTC) #17
Nikita (slow)
lgtm with couple UX questions. https://codereview.chromium.org/438493002/diff/200001/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/438493002/diff/200001/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc#newcode308 chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc:308: // Show Gaia sign-in ...
6 years, 4 months ago (2014-08-08 08:48:45 UTC) #18
davidyu
https://codereview.chromium.org/438493002/diff/200001/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/438493002/diff/200001/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc#newcode308 chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc:308: // Show Gaia sign-in screen again, since we only ...
6 years, 4 months ago (2014-08-08 09:19:09 UTC) #19
davidyu
The CQ bit was checked by davidyu@chromium.org
6 years, 4 months ago (2014-08-08 09:20:10 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidyu@chromium.org/438493002/220001
6 years, 4 months ago (2014-08-08 09:22:07 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-08 12:20:01 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-08 12:37:36 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/2239)
6 years, 4 months ago (2014-08-08 12:37:37 UTC) #24
davidyu
The CQ bit was checked by davidyu@chromium.org
6 years, 4 months ago (2014-08-08 15:33:03 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidyu@chromium.org/438493002/240001
6 years, 4 months ago (2014-08-08 15:33:42 UTC) #26
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 22:45:35 UTC) #27
Message was sent while issue was closed.
Change committed as 288451

Powered by Google App Engine
This is Rietveld 408576698