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

Issue 12538009: Public Sessions: fetch device robot api token during enterprise enrollment. (Closed)

Created:
7 years, 9 months ago by David Roche
Modified:
7 years ago
CC:
chromium-reviews, oshima+watch_chromium.org, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Modify the enterprise enrollment flow to fetch an optional device robot api token from the policy server. This token will be stored in the device's Local State for use by Cloud Print across all profiles (including Guest and Public Sessions). The new steps that fetch the token during enrollment are optional, so that enrollment will still succeed if a policy server doesn't support robot api tokens. BUG=164606 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=197075

Patch Set 1 #

Patch Set 2 : #

Total comments: 28

Patch Set 3 : Addressed review comments. #

Total comments: 8

Patch Set 4 : addressed review comments #

Patch Set 5 : updated tests #

Total comments: 18

Patch Set 6 : addressed review comments, except for adding more failure tests #

Patch Set 7 : rebase #

Patch Set 8 : make api auth fetching optional; add auth failure test cases #

Total comments: 12

Patch Set 9 : address review comments (method naming and comment tweaks) #

Total comments: 1

Patch Set 10 : rebase #

Patch Set 11 : remove unused code requiring api token during enrollment #

Patch Set 12 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+516 lines, -53 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 12 chunks +126 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/policy/enrollment_handler_chromeos.h View 1 2 3 4 5 6 7 8 6 chunks +42 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +94 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/policy/enrollment_status_chromeos.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/settings/device_oauth2_token_service.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h View 1 2 3 4 5 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_client.h View 1 2 3 4 5 6 7 8 9 6 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_client.cc View 1 2 3 4 5 6 7 8 9 5 chunks +54 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_constants.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/cloud/cloud_policy_constants.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/cloud/device_management_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/cloud/device_management_service.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud/device_management_service_browsertest.cc View 1 2 3 4 5 4 chunks +34 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud/device_management_service_unittest.cc View 1 2 3 4 5 chunks +66 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud/enterprise_metrics.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/policy/cloud/mock_cloud_policy_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/proto/cloud/device_management_backend.proto View 1 2 3 4 5 6 7 8 9 4 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/policy/test/policy_testserver.py View 1 2 3 4 5 3 chunks +24 lines, -1 line 0 comments Download
M chrome/test/data/policy/policy_device_management_service_browsertest.json View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M google_apis/gaia/gaia_constants.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M google_apis/gaia/gaia_constants.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
David Roche
Mattias, I still need to add tests, but I wanted to get your feedback before ...
7 years, 9 months ago (2013-03-18 15:23:19 UTC) #1
Mattias Nissler (ping if slow)
This looks pretty good already, only a few minor comments. https://codereview.chromium.org/12538009/diff/2001/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc (right): https://codereview.chromium.org/12538009/diff/2001/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc#newcode262 ...
7 years, 9 months ago (2013-03-19 06:33:08 UTC) #2
David Roche
https://codereview.chromium.org/12538009/diff/2001/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc File chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc (right): https://codereview.chromium.org/12538009/diff/2001/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc#newcode262 chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc:262: UMAFailure(policy::kMetricEnrollmentOtherFailed); On 2013/03/19 06:33:08, Mattias Nissler wrote: > If ...
7 years, 8 months ago (2013-04-02 01:59:25 UTC) #3
Mattias Nissler (ping if slow)
Some more responses / comments. https://codereview.chromium.org/12538009/diff/2001/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc File chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc (right): https://codereview.chromium.org/12538009/diff/2001/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc#newcode152 chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc:152: // does DeviceManagementRequestContextGetter change? ...
7 years, 8 months ago (2013-04-02 14:16:46 UTC) #4
David Roche
https://codereview.chromium.org/12538009/diff/2001/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc File chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc (right): https://codereview.chromium.org/12538009/diff/2001/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc#newcode152 chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc:152: // does DeviceManagementRequestContextGetter change? On 2013/04/02 14:16:46, Mattias Nissler ...
7 years, 8 months ago (2013-04-04 01:39:53 UTC) #5
Mattias Nissler (ping if slow)
Answers to your comments, next step is to fix tests I guess. https://codereview.chromium.org/12538009/diff/2001/chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc File chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc ...
7 years, 8 months ago (2013-04-04 13:18:34 UTC) #6
David Roche
Mattias, Tests updated, PTAL.
7 years, 8 months ago (2013-04-22 04:10:00 UTC) #7
Mattias Nissler (ping if slow)
Looks like you need to rebase. https://codereview.chromium.org/12538009/diff/35001/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc File chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc (right): https://codereview.chromium.org/12538009/diff/35001/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc#newcode436 chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc:436: } We should ...
7 years, 8 months ago (2013-04-22 10:59:00 UTC) #8
David Roche
I'll add the additional failure tests tomorrow. I'll also rebase tomorrow, in a separate patchset ...
7 years, 8 months ago (2013-04-23 01:36:08 UTC) #9
Mattias Nissler (ping if slow)
Looks good thus far, will take another look after rebase / adding tests. https://codereview.chromium.org/12538009/diff/35001/chrome/browser/policy/cloud/cloud_policy_client.h File ...
7 years, 8 months ago (2013-04-23 13:15:12 UTC) #10
David Roche
Added test cases for the auth code and refresh token fetch failures. Currently the auth ...
7 years, 8 months ago (2013-04-24 02:44:10 UTC) #11
Mattias Nissler (ping if slow)
Thinking more about this, I'm not really convinced the auth token should become a hard ...
7 years, 8 months ago (2013-04-24 13:43:13 UTC) #12
David Roche
I'll discuss with Bin about adding a must-get-auth-token flag to the register response. I think ...
7 years, 8 months ago (2013-04-24 15:34:21 UTC) #13
Mattias Nissler (ping if slow)
All right, this LGTM pending getting an answer on the GaiaOAuthClient question and updating the ...
7 years, 8 months ago (2013-04-24 17:58:52 UTC) #14
Mattias Nissler (ping if slow)
One last thing: Can you update the CL description to say "Public Sessions" (instead of ...
7 years, 8 months ago (2013-04-24 18:00:43 UTC) #15
David Roche
+Zel for approval of an additional gaia_constants value for the any_api scope.
7 years, 8 months ago (2013-04-27 17:27:03 UTC) #16
zel
lgtm
7 years, 7 months ago (2013-04-28 19:17:01 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/davidroche@chromium.org/12538009/84002
7 years, 7 months ago (2013-04-29 13:54:48 UTC) #18
commit-bot: I haz the power
Change committed as 197075
7 years, 7 months ago (2013-04-29 17:51:55 UTC) #19
nop9090.no
7 years ago (2013-12-08 00:57:34 UTC) #20
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698