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

Issue 751703003: Implemented consumer management unenrollment. (Closed)

Created:
6 years, 1 month ago by davidyu
Modified:
5 years, 11 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@dcpm
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implemented consumer management unenrollment. To implement this feature: - Added ConsumerUnenrollmentHandler and ConsumerUnenrollmentHandlerFactory. - Added DevcieCloudPolicyManagerChromeOS::Unregister() and Disconnect(). - Added CloudPolicyService::Unregister(). - Added unenrollment related stages in ConsumerManagementStage. - Extended ConsumerManagementNotification to show unenroll notifications. Also, the device cloud policy initializer is restarted after the unenrollment so that we can implement reboot-free enrollment in the future. To implement this feature: - Added OnDeviceCloudPolicyManagerDisconnected(). - Added BrowserPolicyConnectChromeOS::RestartDeviceCloudPolicyInitializer() - Fixed the initiailzer so that it uses ConsumerManagementService to check if the device is consumer-managed rather using DeviceCloudPolicyStore, which doesn't load policies for consumer-managed devices. BUG=chromium:353050 TEST=unit_tests Committed: https://crrev.com/051ed4f27b9361534e25311ad1987f30335faa16 Cr-Commit-Position: refs/heads/master@{#311643} Committed: https://crrev.com/79b7fad5012d359381a0b57bdbf32b866de8ad4e Cr-Commit-Position: refs/heads/master@{#312170}

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : #

Total comments: 80

Patch Set 4 : Rebase #

Patch Set 5 : #

Patch Set 6 : Fix the test. #

Patch Set 7 : Rebase #

Patch Set 8 : Remove unused ConsumerManagementService::IsManaged(). #

Patch Set 9 : Revert changes in DeviceCloudPolicyInitialier, which are no longer necessary. #

Patch Set 10 : Rebase. #

Total comments: 2

Patch Set 11 : Fix and rebase. #

Patch Set 12 : #

Total comments: 9

Patch Set 13 : #

Patch Set 14 : Make the constructor protected and rebase. #

Patch Set 15 : Fix broken browser_tests #

Patch Set 16 : Fix memory leakage #

Patch Set 17 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+934 lines, -113 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/ownership/fake_owner_settings_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/ownership/fake_owner_settings_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/ownership/owner_settings_service_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 12 1 chunk +10 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +27 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/policy/consumer_management_notifier.h View 1 2 2 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/consumer_management_notifier.cc View 1 2 3 3 chunks +58 lines, -35 lines 0 comments Download
M chrome/browser/chromeos/policy/consumer_management_notifier_unittest.cc View 1 2 3 4 2 chunks +53 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/consumer_management_service_unittest.cc View 1 2 3 1 chunk +9 lines, -2 lines 0 comments Download
A chrome/browser/chromeos/policy/consumer_unenrollment_handler.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/consumer_unenrollment_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/consumer_unenrollment_handler_factory.h View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/consumer_unenrollment_handler_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/consumer_unenrollment_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +128 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +21 lines, -41 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +27 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 10 11 12 13 14 15 16 5 chunks +53 lines, -2 lines 0 comments Download
A chrome/browser/chromeos/policy/fake_device_cloud_policy_manager.h View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/fake_device_cloud_policy_manager.cc View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/consumer_management_handler.cc View 1 2 3 2 chunks +14 lines, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +5 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_service.h View 1 2 3 4 4 chunks +22 lines, -1 line 0 comments Download
M components/policy/core/common/cloud/cloud_policy_service.cc View 1 2 3 4 6 chunks +31 lines, -2 lines 0 comments Download
M components/policy/core/common/cloud/cloud_policy_service_unittest.cc View 1 2 3 4 3 chunks +42 lines, -0 lines 0 comments Download

Messages

Total messages: 55 (19 generated)
davidyu
Note that the notification UI does not quite match the mock. I'll update the UI ...
6 years, 1 month ago (2014-11-22 15:16:14 UTC) #2
bartfab (slow)
https://codereview.chromium.org/751703003/diff/40001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h File chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h (right): https://codereview.chromium.org/751703003/diff/40001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h#newcode144 chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h:144: // registration status is changed from registered to unregistered. ...
6 years ago (2014-11-28 13:25:19 UTC) #3
davidyu
https://codereview.chromium.org/751703003/diff/40001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h File chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h (right): https://codereview.chromium.org/751703003/diff/40001/chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h#newcode144 chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h:144: // registration status is changed from registered to unregistered. ...
6 years ago (2014-12-01 17:05:23 UTC) #5
bartfab (slow)
lgtm https://codereview.chromium.org/751703003/diff/200001/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/751703003/diff/200001/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc#newcode23 chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc:23: #include "chrome/browser/chromeos/policy/fake_consumer_management_service.h" Nit: No longer used.
6 years ago (2014-12-15 15:35:50 UTC) #6
davidyu
https://codereview.chromium.org/751703003/diff/200001/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/751703003/diff/200001/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc#newcode23 chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc:23: #include "chrome/browser/chromeos/policy/fake_consumer_management_service.h" On 2014/12/15 15:35:50, bartfab (OOO till 7th ...
5 years, 12 months ago (2014-12-26 08:17:19 UTC) #7
davidyu
Hi Yuri, can you please review files under ownership/*? Hi Steven, can you please review ...
5 years, 11 months ago (2014-12-30 08:09:52 UTC) #10
stevenjb (google-dont-use)
consumer_management_handler.cc lgtm
5 years, 11 months ago (2014-12-30 17:29:15 UTC) #12
davidyu
On 2014/12/30 17:29:15, stevenjb (google-dont-use) wrote: > consumer_management_handler.cc lgtm yuri, ping
5 years, 11 months ago (2015-01-12 08:49:46 UTC) #13
ygorshenin1
https://codereview.chromium.org/751703003/diff/240001/chrome/browser/chromeos/ownership/fake_owner_settings_service.cc File chrome/browser/chromeos/ownership/fake_owner_settings_service.cc (right): https://codereview.chromium.org/751703003/diff/240001/chrome/browser/chromeos/ownership/fake_owner_settings_service.cc#newcode12 chrome/browser/chromeos/ownership/fake_owner_settings_service.cc:12: : OwnerSettingsServiceChromeOS(NULL, profile, owner_key_util), nit: could you please replace ...
5 years, 11 months ago (2015-01-12 10:08:55 UTC) #14
davidyu
https://codereview.chromium.org/751703003/diff/240001/chrome/browser/chromeos/ownership/fake_owner_settings_service.cc File chrome/browser/chromeos/ownership/fake_owner_settings_service.cc (right): https://codereview.chromium.org/751703003/diff/240001/chrome/browser/chromeos/ownership/fake_owner_settings_service.cc#newcode12 chrome/browser/chromeos/ownership/fake_owner_settings_service.cc:12: : OwnerSettingsServiceChromeOS(NULL, profile, owner_key_util), On 2015/01/12 10:08:55, ygorshenin1 wrote: ...
5 years, 11 months ago (2015-01-13 05:43:52 UTC) #15
ygorshenin1
LGTM https://codereview.chromium.org/751703003/diff/240001/chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h File chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h (right): https://codereview.chromium.org/751703003/diff/240001/chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h#newcode123 chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h:123: friend class FakeOwnerSettingsService; On 2015/01/13 05:43:52, davidyu wrote: ...
5 years, 11 months ago (2015-01-13 11:56:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/751703003/280001
5 years, 11 months ago (2015-01-14 07:47:49 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/35862)
5 years, 11 months ago (2015-01-14 07:54:20 UTC) #20
davidyu
Hi Steven, can you please LGTM with your chromium.org account? Thanks!
5 years, 11 months ago (2015-01-14 07:56:32 UTC) #21
bartfab (slow)
On 2015/01/14 07:56:32, davidyu wrote: > Hi Steven, can you please LGTM with your http://chromium.org ...
5 years, 11 months ago (2015-01-14 09:47:20 UTC) #22
stevenjb
On 2015/01/14 09:47:20, bartfab wrote: > On 2015/01/14 07:56:32, davidyu wrote: > > Hi Steven, ...
5 years, 11 months ago (2015-01-14 16:55:26 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/751703003/300001
5 years, 11 months ago (2015-01-15 03:22:10 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/37813)
5 years, 11 months ago (2015-01-15 04:18:47 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/751703003/300001
5 years, 11 months ago (2015-01-15 06:43:15 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/37813)
5 years, 11 months ago (2015-01-15 06:43:48 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/751703003/300001
5 years, 11 months ago (2015-01-15 07:31:54 UTC) #33
commit-bot: I haz the power
Committed patchset #15 (id:300001)
5 years, 11 months ago (2015-01-15 07:33:00 UTC) #34
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/051ed4f27b9361534e25311ad1987f30335faa16 Cr-Commit-Position: refs/heads/master@{#311643}
5 years, 11 months ago (2015-01-15 07:34:15 UTC) #35
ricow1
A revert of this CL (patchset #15 id:300001) has been created in https://codereview.chromium.org/814123006/ by ricow@google.com. ...
5 years, 11 months ago (2015-01-15 10:03:58 UTC) #36
davidyu
On 2015/01/15 10:03:58, ricow1 wrote: > A revert of this CL (patchset #15 id:300001) has ...
5 years, 11 months ago (2015-01-16 09:33:20 UTC) #37
ygorshenin1
lgtm
5 years, 11 months ago (2015-01-16 09:36:33 UTC) #38
bartfab (slow)
lgtm
5 years, 11 months ago (2015-01-16 10:06:21 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/751703003/320001
5 years, 11 months ago (2015-01-16 13:47:46 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/24148) Try jobs failed on following ...
5 years, 11 months ago (2015-01-16 13:51:17 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/751703003/340001
5 years, 11 months ago (2015-01-18 02:37:42 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/15900)
5 years, 11 months ago (2015-01-18 04:57:04 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/751703003/340001
5 years, 11 months ago (2015-01-19 03:30:08 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/15900)
5 years, 11 months ago (2015-01-19 03:30:46 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/751703003/340001
5 years, 11 months ago (2015-01-20 08:44:08 UTC) #53
commit-bot: I haz the power
Committed patchset #17 (id:340001)
5 years, 11 months ago (2015-01-20 08:45:31 UTC) #54
commit-bot: I haz the power
5 years, 11 months ago (2015-01-20 08:46:35 UTC) #55
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/79b7fad5012d359381a0b57bdbf32b866de8ad4e
Cr-Commit-Position: refs/heads/master@{#312170}

Powered by Google App Engine
This is Rietveld 408576698