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

Issue 6821045: Connect enrollment screen to cloud policy subsystem. (Closed)

Created:
9 years, 8 months ago by Mattias Nissler (ping if slow)
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Connect enrollment screen to cloud policy subsystem. Poke the policy subsystem after authenticating GAIA in order to finalize enrollment. BUG=chromium-os:13277 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81376

Patch Set 1 #

Patch Set 2 : Machine ID retrieval, cleanups. #

Total comments: 2

Patch Set 3 : Fix duplicate include #

Total comments: 6

Patch Set 4 : Proper shutdown in CancelEnrollment() #

Patch Set 5 : Push machine model into correct proto field. #

Total comments: 2

Patch Set 6 : address jkummerow's comment. #

Patch Set 7 : Fix unit tests... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -54 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_screen.h View 2 3 4 4 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_screen.cc View 1 2 3 4 6 chunks +59 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_view.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/enterprise_enrollment_view.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/policy/cloud_policy_controller.cc View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/policy/cloud_policy_controller_unittest.cc View 1 2 3 4 5 6 12 chunks +26 lines, -16 lines 0 comments Download
M chrome/browser/policy/cloud_policy_identity_strategy.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/policy/device_policy_identity_strategy.h View 1 2 3 4 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/policy/device_policy_identity_strategy.cc View 1 2 3 4 5 5 chunks +22 lines, -7 lines 0 comments Download
M chrome/browser/policy/device_token_fetcher.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/policy/device_token_fetcher.cc View 1 2 3 4 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/policy/device_token_fetcher_unittest.cc View 1 2 3 4 5 6 5 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/policy/proto/device_management_constants.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/policy/proto/device_management_constants.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/policy/user_policy_identity_strategy.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/user_policy_identity_strategy.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
Mattias Nissler (ping if slow)
This CL finally makes the whole thing functional! :)
9 years, 8 months ago (2011-04-11 16:32:11 UTC) #1
Jakob Kummerow
LGTM :-) http://codereview.chromium.org/6821045/diff/1001/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enterprise_enrollment_screen.cc (right): http://codereview.chromium.org/6821045/diff/1001/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc#newcode10 chrome/browser/chromeos/login/enterprise_enrollment_screen.cc:10: #include "chrome/browser/browser_process.h" nit: duplicate include
9 years, 8 months ago (2011-04-11 20:49:01 UTC) #2
Mattias Nissler (ping if slow)
Fixed nit. Nikita, any feedback? http://codereview.chromium.org/6821045/diff/1001/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enterprise_enrollment_screen.cc (right): http://codereview.chromium.org/6821045/diff/1001/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc#newcode10 chrome/browser/chromeos/login/enterprise_enrollment_screen.cc:10: #include "chrome/browser/browser_process.h" On 2011/04/11 ...
9 years, 8 months ago (2011-04-12 08:40:04 UTC) #3
Nikita (slow)
http://codereview.chromium.org/6821045/diff/13/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enterprise_enrollment_screen.cc (right): http://codereview.chromium.org/6821045/diff/13/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc#newcode98 chrome/browser/chromeos/login/enterprise_enrollment_screen.cc:98: connector->SetCredentials(user_, auth_token, GetMachineId()); Is this process somehow shown to ...
9 years, 8 months ago (2011-04-12 12:46:22 UTC) #4
Nikita (slow)
http://codereview.chromium.org/6821045/diff/13/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enterprise_enrollment_screen.cc (right): http://codereview.chromium.org/6821045/diff/13/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc#newcode54 chrome/browser/chromeos/login/enterprise_enrollment_screen.cc:54: observer->OnExit(ScreenObserver::ENTERPRISE_ENROLLMENT_CANCELLED); We don't need to call g_browser_process->browser_policy_connector()->StopAutoRetry(); here because ...
9 years, 8 months ago (2011-04-12 12:49:30 UTC) #5
Mattias Nissler (ping if slow)
New version with proper cancellation is up. PTAL. Thanks. http://codereview.chromium.org/6821045/diff/13/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enterprise_enrollment_screen.cc (right): http://codereview.chromium.org/6821045/diff/13/chrome/browser/chromeos/login/enterprise_enrollment_screen.cc#newcode54 chrome/browser/chromeos/login/enterprise_enrollment_screen.cc:54: ...
9 years, 8 months ago (2011-04-12 14:07:15 UTC) #6
Nikita (slow)
LGTM Having GAIA spinner is fine. My point was that we need to make sure ...
9 years, 8 months ago (2011-04-12 14:22:58 UTC) #7
Mattias Nissler (ping if slow)
Sorry guys, I've realized that there actually is a field for the machine model in ...
9 years, 8 months ago (2011-04-12 16:29:45 UTC) #8
Jakob Kummerow
LGTM with a minor comment for your consideration. http://codereview.chromium.org/6821045/diff/20/chrome/browser/policy/device_policy_identity_strategy.cc File chrome/browser/policy/device_policy_identity_strategy.cc (right): http://codereview.chromium.org/6821045/diff/20/chrome/browser/policy/device_policy_identity_strategy.cc#newcode33 chrome/browser/policy/device_policy_identity_strategy.cc:33: !sys_lib->GetMachineStatistic(kMachineInfoSerialNumber, ...
9 years, 8 months ago (2011-04-12 16:42:59 UTC) #9
Jakob Kummerow
Oh, and making it compile would of course be nice ;-)
9 years, 8 months ago (2011-04-12 16:43:49 UTC) #10
Mattias Nissler (ping if slow)
http://codereview.chromium.org/6821045/diff/20/chrome/browser/policy/device_policy_identity_strategy.cc File chrome/browser/policy/device_policy_identity_strategy.cc (right): http://codereview.chromium.org/6821045/diff/20/chrome/browser/policy/device_policy_identity_strategy.cc#newcode33 chrome/browser/policy/device_policy_identity_strategy.cc:33: !sys_lib->GetMachineStatistic(kMachineInfoSerialNumber, On 2011/04/12 16:42:59, jkummerow wrote: > Due to ...
9 years, 8 months ago (2011-04-12 16:49:46 UTC) #11
xiyuan
FYI, the change description has the wrong issue number. I think you meant chromium-os:13277 rather ...
9 years, 8 months ago (2011-04-12 17:26:22 UTC) #12
Mattias Nissler (ping if slow)
On 2011/04/12 17:26:22, xiyuan wrote: > FYI, the change description has the wrong issue number. ...
9 years, 8 months ago (2011-04-12 17:27:41 UTC) #13
Jakob Kummerow
9 years, 8 months ago (2011-04-13 07:42:33 UTC) #14
Fixed unit tests LGTM.

Powered by Google App Engine
This is Rietveld 408576698