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

Issue 10443125: Allow re-enrollment to the same domain in case of policy data loss. (Closed)

Created:
8 years, 6 months ago by pastarmovj
Modified:
8 years, 6 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org, Joao da Silva
Visibility:
Public.

Description

Allow re-enrollment to the same domain in case of policy data loss. As a side effect allow to reenroll with any other account from the same domain as the initial enrollment user. BUG=chromium-os:26157 TEST=As described in the bug + unit_tests:enterprise. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=142937

Patch Set 1 #

Patch Set 2 : Fixed unit tests. #

Total comments: 10

Patch Set 3 : Addressed comments and fixed some small issues. #

Total comments: 6

Patch Set 4 : Moved the domain extraction to Authenticator and added custom error message. #

Total comments: 8

Patch Set 5 : Addressed comments. #

Total comments: 8

Patch Set 6 : Addressed comments. #

Total comments: 10

Patch Set 7 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -29 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/authenticator.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/authenticator.cc View 1 2 3 4 5 6 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/authenticator_unittest.cc View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen.cc View 1 2 3 4 5 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen_actor.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/enrollment/mock_enterprise_enrollment_screen.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 1 chunk +16 lines, -1 line 0 comments Download
M chrome/browser/policy/device_policy_cache.cc View 1 2 3 4 5 6 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/policy/device_policy_cache_unittest.cc View 1 2 3 4 5 6 2 chunks +27 lines, -3 lines 0 comments Download
M chrome/browser/policy/enterprise_install_attributes.cc View 1 2 3 4 5 6 6 chunks +13 lines, -16 lines 0 comments Download
M chrome/browser/policy/enterprise_install_attributes_unittest.cc View 1 1 chunk +8 lines, -1 line 0 comments Download
M chrome/browser/policy/enterprise_metrics.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/enterprise_oauth_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/enterprise_oauth_enrollment_screen_handler.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
pastarmovj
Hi Mattias, Can you please review the first CL in the series that will make ...
8 years, 6 months ago (2012-06-01 15:53:56 UTC) #1
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10443125/diff/3002/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): http://codereview.chromium.org/10443125/diff/3002/chrome/browser/chromeos/login/existing_user_controller.cc#newcode461 chrome/browser/chromeos/login/existing_user_controller.cc:461: } else { shouldn't this be else if (status ...
8 years, 6 months ago (2012-06-04 10:17:52 UTC) #2
pastarmovj
Please reexamine this CL. http://codereview.chromium.org/10443125/diff/3002/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): http://codereview.chromium.org/10443125/diff/3002/chrome/browser/chromeos/login/existing_user_controller.cc#newcode461 chrome/browser/chromeos/login/existing_user_controller.cc:461: } else { On 2012/06/04 ...
8 years, 6 months ago (2012-06-08 09:54:32 UTC) #3
pastarmovj
@Joao: FYI
8 years, 6 months ago (2012-06-08 11:42:47 UTC) #4
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10443125/diff/3002/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): http://codereview.chromium.org/10443125/diff/3002/chrome/browser/chromeos/login/existing_user_controller.cc#newcode461 chrome/browser/chromeos/login/existing_user_controller.cc:461: } else { On 2012/06/08 09:54:32, pastarmovj wrote: > ...
8 years, 6 months ago (2012-06-08 12:06:11 UTC) #5
pastarmovj
@Mattias: PTAL @Nikita: Please review as owner of chrome/browser/ui/webui/chromeos/login. http://codereview.chromium.org/10443125/diff/3002/chrome/browser/chromeos/login/existing_user_controller.cc File chrome/browser/chromeos/login/existing_user_controller.cc (right): http://codereview.chromium.org/10443125/diff/3002/chrome/browser/chromeos/login/existing_user_controller.cc#newcode461 chrome/browser/chromeos/login/existing_user_controller.cc:461: ...
8 years, 6 months ago (2012-06-08 12:56:39 UTC) #6
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10443125/diff/16002/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10443125/diff/16002/chrome/app/generated_resources.grd#newcode15967 chrome/app/generated_resources.grd:15967: + <message name="IDS_ENTERPRISE_WRONG_USER_ERROR" desc="Error message to show when the ...
8 years, 6 months ago (2012-06-08 13:13:44 UTC) #7
pastarmovj
Addressed your comments. http://codereview.chromium.org/10443125/diff/16002/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10443125/diff/16002/chrome/app/generated_resources.grd#newcode15967 chrome/app/generated_resources.grd:15967: + <message name="IDS_ENTERPRISE_WRONG_USER_ERROR" desc="Error message to ...
8 years, 6 months ago (2012-06-08 15:07:12 UTC) #8
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10443125/diff/14003/chrome/browser/policy/device_policy_cache.cc File chrome/browser/policy/device_policy_cache.cc (right): http://codereview.chromium.org/10443125/diff/14003/chrome/browser/policy/device_policy_cache.cc#newcode173 chrome/browser/policy/device_policy_cache.cc:173: install_attributes_->GetRegistrationUser())); I though GetRegistrationUser() is meant to go away ...
8 years, 6 months ago (2012-06-08 15:24:36 UTC) #9
Nikita (slow)
chromeos/login lgtm http://codereview.chromium.org/10443125/diff/14003/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 (right): http://codereview.chromium.org/10443125/diff/14003/chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc#newcode248 chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_screen_handler.cc:248: void EnterpriseOAuthEnrollmentScreenHandler::ShowUserEnrollmentError() { nit: rename to ShowDomainMismatchError()
8 years, 6 months ago (2012-06-14 12:42:55 UTC) #10
pastarmovj
Addressed your comments PTAL. http://codereview.chromium.org/10443125/diff/14003/chrome/browser/policy/device_policy_cache.cc File chrome/browser/policy/device_policy_cache.cc (right): http://codereview.chromium.org/10443125/diff/14003/chrome/browser/policy/device_policy_cache.cc#newcode173 chrome/browser/policy/device_policy_cache.cc:173: install_attributes_->GetRegistrationUser())); On 2012/06/08 15:24:36, Mattias ...
8 years, 6 months ago (2012-06-18 14:57:27 UTC) #11
Mattias Nissler (ping if slow)
Getting close, I'd like to see the fixed test before LGTM http://codereview.chromium.org/10443125/diff/25001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): ...
8 years, 6 months ago (2012-06-18 16:45:17 UTC) #12
pastarmovj
Hope this it :) http://codereview.chromium.org/10443125/diff/25001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/10443125/diff/25001/chrome/app/generated_resources.grd#newcode16060 chrome/app/generated_resources.grd:16060: + This user account does ...
8 years, 6 months ago (2012-06-18 17:12:58 UTC) #13
Mattias Nissler (ping if slow)
LGTM for realz now.
8 years, 6 months ago (2012-06-19 09:15:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pastarmovj@chromium.org/10443125/29002
8 years, 6 months ago (2012-06-19 09:30:12 UTC) #15
commit-bot: I haz the power
8 years, 6 months ago (2012-06-19 11:43:03 UTC) #16
Try job failure for 10443125-29002 (retry) on win_rel for step
"chrome_frame_net_tests".
It's a second try, previously, step "chrome_frame_net_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698