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

Issue 10928036: Implement Chrome OS device enrollment on the new cloud policy stack. (Closed)

Created:
8 years, 3 months ago by Mattias Nissler (ping if slow)
Modified:
8 years, 2 months ago
Reviewers:
joao da silva, pastarmovj
CC:
chromium-reviews
Visibility:
Public.

Description

Implement Chrome OS device enrollment on the new cloud policy stack. The enrollment flow is now concentrated in EnrollmentHandlerChromeOS, which makes the code easier to follow and allows for better and more consistent error reporting. BUG=chromium:108928 TEST=unit tests TBR=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163822

Patch Set 1 #

Total comments: 40

Patch Set 2 : Addressed comments, rebased. #

Total comments: 6

Patch Set 3 : rebase. #

Patch Set 4 : fix some build glitches. #

Total comments: 14

Patch Set 5 : Address comments. #

Total comments: 3

Patch Set 6 : Fix CloudPolicyClient error handling. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+814 lines, -3 lines) Patch
M chrome/browser/policy/browser_policy_connector.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_client.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud_policy_client.cc View 1 2 3 4 3 chunks +29 lines, -1 line 0 comments Download
M chrome/browser/policy/device_cloud_policy_manager_chromeos.h View 1 2 5 chunks +27 lines, -1 line 0 comments Download
M chrome/browser/policy/device_cloud_policy_manager_chromeos.cc View 1 2 3 chunks +43 lines, -1 line 0 comments Download
M chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc View 1 2 3 4 2 chunks +212 lines, -0 lines 0 comments Download
A chrome/browser/policy/enrollment_handler_chromeos.h View 1 2 3 4 1 chunk +133 lines, -0 lines 0 comments Download
A chrome/browser/policy/enrollment_handler_chromeos.cc View 1 2 3 4 5 1 chunk +234 lines, -0 lines 0 comments Download
A chrome/browser/policy/enrollment_status_chromeos.h View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/policy/enrollment_status_chromeos.cc View 1 1 chunk +57 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Mattias Nissler (ping if slow)
And this is the new enrollment implementation. Last one for today.
8 years, 3 months ago (2012-09-06 19:25:27 UTC) #1
pastarmovj
it sgtm a few questions/comments though before the s turns into an l. http://codereview.chromium.org/10928036/diff/1/chrome/browser/policy/cloud_policy_client.cc File ...
8 years, 3 months ago (2012-09-07 12:16:27 UTC) #2
pastarmovj
...and I hope you have noticed the redness of most of your tryjobs on both ...
8 years, 3 months ago (2012-09-07 12:20:24 UTC) #3
Joao da Silva
Much nicer to follow having all the steps together! http://codereview.chromium.org/10928036/diff/1/chrome/browser/policy/cloud_policy_client.cc File chrome/browser/policy/cloud_policy_client.cc (right): http://codereview.chromium.org/10928036/diff/1/chrome/browser/policy/cloud_policy_client.cc#newcode30 chrome/browser/policy/cloud_policy_client.cc:30: ...
8 years, 3 months ago (2012-09-07 14:01:42 UTC) #4
Mattias Nissler (ping if slow)
PTAL, I'd like to land this rather sooner than later :) https://codereview.chromium.org/10928036/diff/1/chrome/browser/policy/cloud_policy_client.cc File chrome/browser/policy/cloud_policy_client.cc (right): ...
8 years, 2 months ago (2012-10-23 15:30:41 UTC) #5
pastarmovj
i am generally ok with the code now. Please take a look at the comments ...
8 years, 2 months ago (2012-10-23 15:58:08 UTC) #6
Mattias Nissler (ping if slow)
https://codereview.chromium.org/10928036/diff/11001/chrome/browser/policy/device_cloud_policy_manager_chromeos.cc File chrome/browser/policy/device_cloud_policy_manager_chromeos.cc (right): https://codereview.chromium.org/10928036/diff/11001/chrome/browser/policy/device_cloud_policy_manager_chromeos.cc#newcode143 chrome/browser/policy/device_cloud_policy_manager_chromeos.cc:143: if (status.status() == EnrollmentStatus::STATUS_SUCCESS) { On 2012/10/23 15:58:08, pastarmovj ...
8 years, 2 months ago (2012-10-23 16:33:03 UTC) #7
pastarmovj
lgtm ok i am sold on both :)
8 years, 2 months ago (2012-10-23 16:37:18 UTC) #8
Joao da Silva
lgtm after fixing the logic in cloud_policy_client.cc. http://codereview.chromium.org/10928036/diff/11001/chrome/browser/policy/enrollment_status_chromeos.h File chrome/browser/policy/enrollment_status_chromeos.h (right): http://codereview.chromium.org/10928036/diff/11001/chrome/browser/policy/enrollment_status_chromeos.h#newcode49 chrome/browser/policy/enrollment_status_chromeos.h:49: EnrollmentStatus(Status status, ...
8 years, 2 months ago (2012-10-23 18:58:50 UTC) #9
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10928036/diff/11001/chrome/browser/policy/enrollment_status_chromeos.h File chrome/browser/policy/enrollment_status_chromeos.h (right): http://codereview.chromium.org/10928036/diff/11001/chrome/browser/policy/enrollment_status_chromeos.h#newcode49 chrome/browser/policy/enrollment_status_chromeos.h:49: EnrollmentStatus(Status status, On 2012/10/23 18:58:50, Joao da Silva wrote: ...
8 years, 2 months ago (2012-10-24 10:33:17 UTC) #10
Joao da Silva
Still lgtm http://codereview.chromium.org/10928036/diff/31001/chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc File chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc (right): http://codereview.chromium.org/10928036/diff/31001/chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc#newcode329 chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc:329: policy_.policy()); Still broken? (maybe there are tabs ...
8 years, 2 months ago (2012-10-24 10:57:01 UTC) #11
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10928036/diff/31001/chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc File chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc (right): http://codereview.chromium.org/10928036/diff/31001/chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc#newcode329 chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc:329: policy_.policy()); On 2012/10/24 10:57:01, Joao da Silva wrote: > ...
8 years, 2 months ago (2012-10-24 11:01:32 UTC) #12
Joao da Silva
http://codereview.chromium.org/10928036/diff/31001/chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc File chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc (right): http://codereview.chromium.org/10928036/diff/31001/chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc#newcode329 chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc:329: policy_.policy()); On 2012/10/24 11:01:32, Mattias Nissler wrote: > On ...
8 years, 2 months ago (2012-10-24 11:37:06 UTC) #13
Mattias Nissler (ping if slow)
+ben for the gyp changes, ticking the box now.
8 years, 2 months ago (2012-10-24 11:51:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnissler@chromium.org/10928036/32025
8 years, 2 months ago (2012-10-24 11:51:28 UTC) #15
commit-bot: I haz the power
8 years, 2 months ago (2012-10-24 14:02:10 UTC) #16
Change committed as 163822

Powered by Google App Engine
This is Rietveld 408576698