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

Issue 1767443002: Add enterprise enrollment support for fake users. (Closed)

Created:
4 years, 9 months ago by jdufault
Modified:
4 years, 8 months ago
CC:
chromium-reviews, dzhioev+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add enterprise enrollment support for fake users. This is one CL in a set of three: - https://codereview.chromium.org/1767443002 (this one) - https://codereview.chromium.org/1765483004 - https://chromium-review.googlesource.com/#/c/330272 BUG=586195 Committed: https://crrev.com/562979ca9fc04c61c521123f9978c174dfbcbfc6 Cr-Commit-Position: refs/heads/master@{#387375} Committed: https://crrev.com/56f9c7717b86f7a67b70257f3d61dd6c7187a7fc Cr-Commit-Position: refs/heads/master@{#388259}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Split PolicyOAuth2TokenFetcher into impl/fake classes; fix SAML browsertests #

Total comments: 32

Patch Set 3 : Address comments #

Total comments: 2

Patch Set 4 : Rebase #

Patch Set 5 : Nits #

Total comments: 3

Patch Set 6 : Rebase #

Patch Set 7 : Fix compile #

Patch Set 8 : Rebase #

Patch Set 9 : Rebase #

Patch Set 10 : Check instance before derefing it #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -117 lines) Patch
M chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/login/saml/saml_browsertest.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.h View 1 2 3 4 5 2 chunks +22 lines, -79 lines 0 comments Download
M chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc View 1 2 3 4 5 10 chunks +182 lines, -23 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/wildcard_login_checker.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/test/policy_testserver.py View 1 2 chunks +38 lines, -0 lines 0 comments Download
M chrome/browser/resources/chromeos/login/login_shared.js View 1 2 3 4 5 6 7 8 9 2 chunks +33 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/enrollment_screen_handler.cc View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download
M ui/login/display_manager.js View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 60 (27 generated)
jdufault
Achuith/Pavel, PTAL at the three CL's I've posted. This is the primary one. I will ...
4 years, 9 months ago (2016-03-03 22:38:56 UTC) #4
achuithb
https://codereview.chromium.org/1767443002/diff/1/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc File chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc (right): https://codereview.chromium.org/1767443002/diff/1/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc#newcode34 chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc:34: bool PolicyOAuth2TokenFetcher::enable_fake_for_testing_ = false; do we use comment //static ...
4 years, 9 months ago (2016-03-03 22:45:00 UTC) #5
jdufault
https://codereview.chromium.org/1767443002/diff/1/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc File chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc (right): https://codereview.chromium.org/1767443002/diff/1/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc#newcode52 chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc:52: if (enable_fake_for_testing_) { On 2016/03/03 22:45:00, achuithb wrote: > ...
4 years, 9 months ago (2016-03-03 23:11:04 UTC) #6
achuithb
https://codereview.chromium.org/1767443002/diff/1/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc File chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc (right): https://codereview.chromium.org/1767443002/diff/1/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc#newcode52 chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc:52: if (enable_fake_for_testing_) { On 2016/03/03 23:11:04, jdufault wrote: > ...
4 years, 9 months ago (2016-03-03 23:23:43 UTC) #7
achuithb
https://codereview.chromium.org/1767443002/diff/1/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc File chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc (right): https://codereview.chromium.org/1767443002/diff/1/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc#newcode52 chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc:52: if (enable_fake_for_testing_) { On 2016/03/03 23:23:43, achuithb wrote: > ...
4 years, 9 months ago (2016-03-04 19:12:37 UTC) #8
jdufault
I fixed the SAML tests by making them handle the attribute prompt screen. This required ...
4 years, 9 months ago (2016-03-04 20:42:48 UTC) #9
achuithb
https://codereview.chromium.org/1767443002/diff/20001/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc File chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc (right): https://codereview.chromium.org/1767443002/diff/20001/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc#newcode34 chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc:34: public base::SupportsWeakPtr<PolicyOAuth2TokenFetcherImpl>, switch to using WeakPtrFactory instead. https://codereview.chromium.org/1767443002/diff/20001/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc#newcode39 chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc:39: ...
4 years, 9 months ago (2016-03-08 08:11:45 UTC) #10
jdufault
https://codereview.chromium.org/1767443002/diff/20001/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc File chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc (right): https://codereview.chromium.org/1767443002/diff/20001/chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc#newcode34 chrome/browser/chromeos/policy/policy_oauth2_token_fetcher.cc:34: public base::SupportsWeakPtr<PolicyOAuth2TokenFetcherImpl>, On 2016/03/08 08:11:44, achuithb wrote: > switch ...
4 years, 9 months ago (2016-03-08 21:37:09 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767443002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767443002/40001
4 years, 9 months ago (2016-03-08 22:10:52 UTC) #13
achuithb
lgtm. Please ask Pavel if he also wants to review this before you land this. ...
4 years, 9 months ago (2016-03-08 22:13:26 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/141985) mac_chromium_compile_dbg_ng on ...
4 years, 9 months ago (2016-03-08 22:14:32 UTC) #16
dzhioev (left Google)
LGTM with nit https://codereview.chromium.org/1767443002/diff/20001/chrome/browser/resources/chromeos/login/login_common.js File chrome/browser/resources/chromeos/login/login_common.js (right): https://codereview.chromium.org/1767443002/diff/20001/chrome/browser/resources/chromeos/login/login_common.js#newcode333 chrome/browser/resources/chromeos/login/login_common.js:333: chrome.send('completeLogin', ['12345', username, password, false]); Is ...
4 years, 9 months ago (2016-03-09 00:19:28 UTC) #17
jdufault
https://codereview.chromium.org/1767443002/diff/20001/chrome/browser/resources/chromeos/login/login_common.js File chrome/browser/resources/chromeos/login/login_common.js (right): https://codereview.chromium.org/1767443002/diff/20001/chrome/browser/resources/chromeos/login/login_common.js#newcode333 chrome/browser/resources/chromeos/login/login_common.js:333: chrome.send('completeLogin', ['12345', username, password, false]); On 2016/03/09 00:19:28, dzhioev ...
4 years, 9 months ago (2016-03-18 17:38:20 UTC) #20
jdufault
Either atwilson@ or bartfab@, PTAL at policy_testserver.py changes. Thanks!
4 years, 9 months ago (2016-03-18 17:41:35 UTC) #22
jdufault
On 2016/03/18 17:41:35, jdufault wrote: > Either atwilson@ or bartfab@, PTAL at policy_testserver.py changes. Thanks! ...
4 years, 9 months ago (2016-03-22 17:57:33 UTC) #23
Andrew T Wilson (Slow)
Changes mostly LG, but I have some concerns about how we're mocking out the PolicyOAuthFetcher. ...
4 years, 9 months ago (2016-03-23 12:37:13 UTC) #24
Andrew T Wilson (Slow)
Changes mostly LG, but I have some concerns about how we're mocking out the PolicyOAuthFetcher. ...
4 years, 9 months ago (2016-03-23 12:37:13 UTC) #25
jdufault
https://codereview.chromium.org/1767443002/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/1767443002/diff/120001/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc#newcode95 chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc:95: oauth_fetcher_.reset(policy::PolicyOAuth2TokenFetcher::CreateInstance()); On 2016/03/23 12:37:13, Andrew T Wilson (Slow) wrote: ...
4 years, 9 months ago (2016-03-23 18:08:23 UTC) #26
jdufault
ping atwilson@
4 years, 8 months ago (2016-03-30 18:58:46 UTC) #27
bartfab (slow)
policy_testserver.py LGTM
4 years, 8 months ago (2016-04-01 12:43:36 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767443002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767443002/120001
4 years, 8 months ago (2016-04-06 00:08:09 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_gn on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_gn/builds/14559) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
4 years, 8 months ago (2016-04-06 00:10:52 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767443002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767443002/140001
4 years, 8 months ago (2016-04-12 19:24:21 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/195577)
4 years, 8 months ago (2016-04-12 19:42:20 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767443002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767443002/160001
4 years, 8 months ago (2016-04-12 20:04:25 UTC) #41
commit-bot: I haz the power
Failed to apply patch for chrome/browser/resources/chromeos/login/login_common.js: While running git apply --index -3 -p1; error: chrome/browser/resources/chromeos/login/login_common.js: ...
4 years, 8 months ago (2016-04-12 20:58:23 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767443002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767443002/180001
4 years, 8 months ago (2016-04-14 17:50:26 UTC) #47
commit-bot: I haz the power
Committed patchset #8 (id:180001)
4 years, 8 months ago (2016-04-14 18:38:38 UTC) #49
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/562979ca9fc04c61c521123f9978c174dfbcbfc6 Cr-Commit-Position: refs/heads/master@{#387375}
4 years, 8 months ago (2016-04-14 18:39:43 UTC) #51
Josh Horwich
A revert of this CL (patchset #8 id:180001) has been created in https://codereview.chromium.org/1889213002/ by jhorwich@chromium.org. ...
4 years, 8 months ago (2016-04-15 16:10:03 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1767443002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1767443002/220001
4 years, 8 months ago (2016-04-19 18:12:36 UTC) #56
commit-bot: I haz the power
Committed patchset #10 (id:220001)
4 years, 8 months ago (2016-04-19 18:51:52 UTC) #58
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:14:24 UTC) #60
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/56f9c7717b86f7a67b70257f3d61dd6c7187a7fc
Cr-Commit-Position: refs/heads/master@{#388259}

Powered by Google App Engine
This is Rietveld 408576698