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

Issue 2655873002: Get enrollment token from DMServer when an Active Directory user uses ARC (Closed)

Created:
3 years, 11 months ago by Marton Hunyady
Modified:
3 years, 10 months ago
CC:
chromium-reviews, alemate+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, Alex Chau, hidehiko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Get enrollment token from DMServer when an Active Directory user uses ARC When ARC asks Chrome for authentication info, if the current user is an Active Directory user, Chrome gets an enrollment token from DMServer instead of the auth codes which are used for regular GAIA accounts. This CL also enables the Play Store icon for Active Directory users. BUG=680954, 680955, 680956 Review-Url: https://codereview.chromium.org/2655873002 Cr-Commit-Position: refs/heads/master@{#448682} Committed: https://chromium.googlesource.com/chromium/src/+/56c49db6fa925b9190d362d2a3d1207f7194242d

Patch Set 1 #

Patch Set 2 : Add implementation of getting an enrollment token. #

Patch Set 3 : . #

Patch Set 4 : Remove unnecessary includes #

Total comments: 19

Patch Set 5 : Fix Luis's comments #

Patch Set 6 : Rebase on master #

Patch Set 7 : Change error message string #

Total comments: 10

Patch Set 8 : Fix Thiemo's comments, add browsertest for arc_active_directory_enrollment_token_fetcher #

Total comments: 2

Patch Set 9 : Comment on why the error is unknown #

Total comments: 20

Patch Set 10 : Fix Luis's comments #

Patch Set 11 : Enable ARC #

Patch Set 12 : Add command line switch to enable AD with ARC functionality. #

Patch Set 13 : Fix browsertest. #

Patch Set 14 : Add ClientId to DMServer request. #

Total comments: 10

Patch Set 15 : Use arc-availability switch, fix comments #

Patch Set 16 : Fix unit test after renaming flag #

Total comments: 10

Patch Set 17 : Fix Luis's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+614 lines, -71 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +45 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_session_manager.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +9 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +26 lines, -1 line 0 comments Download
A chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +106 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +232 lines, -0 lines 0 comments Download
D chrome/browser/chromeos/arc/auth/arc_auth_code_fetcher.h View 1 1 chunk +0 lines, -30 lines 0 comments Download
A chrome/browser/chromeos/arc/auth/arc_auth_info_fetcher.h View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/auth/arc_background_auth_code_fetcher.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/arc/auth/arc_manual_auth_code_fetcher.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/arc/auth/arc_robot_auth_code_fetcher.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M components/arc/arc_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M components/arc/arc_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +19 lines, -5 lines 0 comments Download
M components/arc/arc_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +21 lines, -0 lines 0 comments Download
M components/arc/common/auth.mojom View 1 3 chunks +16 lines, -7 lines 0 comments Download
M components/policy/core/browser/cloud/message_util.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_constants.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/device_management_service.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/device_management_service.cc View 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 75 (55 generated)
Marton Hunyady
3 years, 10 months ago (2017-01-31 11:50:39 UTC) #7
Luis Héctor Chávez
https://codereview.chromium.org/2655873002/diff/60001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2655873002/diff/60001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode111 chrome/browser/chromeos/arc/arc_auth_service.cc:111: if (!is_enforced) { nit: elide braces (or use a ...
3 years, 10 months ago (2017-01-31 18:01:10 UTC) #9
Marton Hunyady
3 years, 10 months ago (2017-01-31 18:16:22 UTC) #11
Marton Hunyady
Thank you for the review! https://codereview.chromium.org/2655873002/diff/60001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2655873002/diff/60001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode111 chrome/browser/chromeos/arc/arc_auth_service.cc:111: if (!is_enforced) { On ...
3 years, 10 months ago (2017-02-01 12:21:51 UTC) #14
Marton Hunyady
achuith: PTAL at chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc
3 years, 10 months ago (2017-02-01 13:04:49 UTC) #20
achuithb
On 2017/02/01 13:04:49, Marton Hunyady wrote: > achuith: PTAL at > chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc rubberstamp lgtm for ...
3 years, 10 months ago (2017-02-02 00:23:05 UTC) #23
Thiemo Nagel
I've only looked at */policy/* and at the enrollment helper. https://codereview.chromium.org/2655873002/diff/120001/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc File chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc (right): https://codereview.chromium.org/2655873002/diff/120001/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc#newcode361 ...
3 years, 10 months ago (2017-02-02 13:24:59 UTC) #24
Marton Hunyady
Thanks for the review! I also added a browsertest for ArcActiveDirectoryEnrollmentTokenFetcher. https://codereview.chromium.org/2655873002/diff/120001/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc File chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc (right): ...
3 years, 10 months ago (2017-02-02 18:19:06 UTC) #25
Thiemo Nagel
*/policy/* lgtm with nit https://codereview.chromium.org/2655873002/diff/140001/components/policy/core/browser/cloud/message_util.cc File components/policy/core/browser/cloud/message_util.cc (right): https://codereview.chromium.org/2655873002/diff/140001/components/policy/core/browser/cloud/message_util.cc#newcode52 components/policy/core/browser/cloud/message_util.cc:52: return IDS_POLICY_DM_STATUS_UNKNOWN_ERROR; Nit: I'd suggest ...
3 years, 10 months ago (2017-02-03 12:45:49 UTC) #30
Marton Hunyady
https://codereview.chromium.org/2655873002/diff/140001/components/policy/core/browser/cloud/message_util.cc File components/policy/core/browser/cloud/message_util.cc (right): https://codereview.chromium.org/2655873002/diff/140001/components/policy/core/browser/cloud/message_util.cc#newcode52 components/policy/core/browser/cloud/message_util.cc:52: return IDS_POLICY_DM_STATUS_UNKNOWN_ERROR; On 2017/02/03 12:45:49, Thiemo Nagel (slow) wrote: ...
3 years, 10 months ago (2017-02-03 13:23:26 UTC) #31
Luis Héctor Chávez
https://codereview.chromium.org/2655873002/diff/160001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2655873002/diff/160001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode109 chrome/browser/chromeos/arc/arc_auth_service.cc:109: account_info->enrollment_token = auth_info; be aware that not setting account_info->auth_code ...
3 years, 10 months ago (2017-02-03 16:16:51 UTC) #36
Marton Hunyady
https://codereview.chromium.org/2655873002/diff/160001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/2655873002/diff/160001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode109 chrome/browser/chromeos/arc/arc_auth_service.cc:109: account_info->enrollment_token = auth_info; On 2017/02/03 16:16:50, Luis Héctor Chávez ...
3 years, 10 months ago (2017-02-03 18:11:12 UTC) #37
Luis Héctor Chávez
https://codereview.chromium.org/2655873002/diff/260001/chrome/browser/chromeos/arc/arc_util.cc File chrome/browser/chromeos/arc/arc_util.cc (right): https://codereview.chromium.org/2655873002/diff/260001/chrome/browser/chromeos/arc/arc_util.cc#newcode61 chrome/browser/chromeos/arc/arc_util.cc:61: // GAIA account. An exception is Kiosk mode and ...
3 years, 10 months ago (2017-02-06 22:00:15 UTC) #50
Marton Hunyady
https://codereview.chromium.org/2655873002/diff/260001/chrome/browser/chromeos/arc/arc_util.cc File chrome/browser/chromeos/arc/arc_util.cc (right): https://codereview.chromium.org/2655873002/diff/260001/chrome/browser/chromeos/arc/arc_util.cc#newcode61 chrome/browser/chromeos/arc/arc_util.cc:61: // GAIA account. An exception is Kiosk mode and ...
3 years, 10 months ago (2017-02-07 14:53:42 UTC) #53
Luis Héctor Chávez
lgtm with nits. +hidehiko@ FYI (for the flag change) https://codereview.chromium.org/2655873002/diff/300001/chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.h File chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.h (right): https://codereview.chromium.org/2655873002/diff/300001/chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.h#newcode19 chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.h:19: ...
3 years, 10 months ago (2017-02-07 16:33:04 UTC) #59
Marton Hunyady
https://codereview.chromium.org/2655873002/diff/300001/chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.h File chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.h (right): https://codereview.chromium.org/2655873002/diff/300001/chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.h#newcode19 chrome/browser/chromeos/arc/auth/arc_active_directory_enrollment_token_fetcher.h:19: } On 2017/02/07 16:33:03, Luis Héctor Chávez wrote: > ...
3 years, 10 months ago (2017-02-07 17:28:48 UTC) #64
Marton Hunyady
rsesek: PTAL at components/arc/common/auth.mojom
3 years, 10 months ago (2017-02-07 17:29:39 UTC) #65
Robert Sesek
lgtm
3 years, 10 months ago (2017-02-07 18:35:13 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2655873002/320001
3 years, 10 months ago (2017-02-07 18:38:34 UTC) #71
commit-bot: I haz the power
3 years, 10 months ago (2017-02-07 19:04:44 UTC) #75
Message was sent while issue was closed.
Committed patchset #17 (id:320001) as
https://chromium.googlesource.com/chromium/src/+/56c49db6fa925b9190d362d2a3d1...

Powered by Google App Engine
This is Rietveld 408576698