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

Issue 822523003: Implement device-local account policy pushing (Closed)

Created:
5 years, 11 months ago by bartfab (slow)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, 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@f_2_442800_switch_device_cloud_policy_invalidator
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement device-local account policy pushing This CL implements policy pushing for device-local accounts. The Tango connection comes from AffiliatedInvalidationServiceProvider, which manages a single shared connection for device policy pushing and device-local account policy pushing, conserving server resources. BUG=442800 TEST=New unit test TBR=dcheng (profile_invalidation_provider_factory.h) Committed: https://crrev.com/c016e1d9659631a932e335c551c58516a0413ea7 Cr-Commit-Position: refs/heads/master@{#314562}

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Removed the need to initialize singletons in unit tests. #

Total comments: 18

Patch Set 4 : Addressed comments. #

Total comments: 2

Patch Set 5 : Rebased. #

Total comments: 16

Patch Set 6 : Addressed nits. #

Patch Set 7 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+494 lines, -1541 lines) Patch
A + chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator.h View 1 2 3 4 5 4 chunks +23 lines, -14 lines 0 comments Download
A + chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator.cc View 1 2 3 4 5 2 chunks +16 lines, -18 lines 0 comments Download
A chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator_unittest.cc View 1 2 3 4 5 1 chunk +194 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/affiliated_invalidation_service_provider.h View 1 2 3 4 5 4 chunks +10 lines, -70 lines 0 comments Download
M chrome/browser/chromeos/policy/affiliated_invalidation_service_provider.cc View 1 2 3 4 5 1 chunk +3 lines, -324 lines 0 comments Download
A + chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl.h View 1 2 3 3 chunks +14 lines, -56 lines 0 comments Download
A + chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl.cc View 1 2 3 15 chunks +32 lines, -30 lines 0 comments Download
A + chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_impl_unittest.cc View 1 2 3 4 5 6 22 chunks +58 lines, -56 lines 0 comments Download
D chrome/browser/chromeos/policy/affiliated_invalidation_service_provider_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -627 lines 0 comments Download
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/policy/browser_policy_connector_chromeos.cc View 1 2 3 5 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/policy/cloud_external_data_policy_observer_unittest.cc View 1 2 3 3 chunks +15 lines, -8 lines 0 comments Download
D chrome/browser/chromeos/policy/device_cloud_policy_invalidator.h View 1 2 3 1 chunk +0 lines, -62 lines 0 comments Download
D chrome/browser/chromeos/policy/device_cloud_policy_invalidator.cc View 1 2 3 1 chunk +0 lines, -67 lines 0 comments Download
D chrome/browser/chromeos/policy/device_cloud_policy_invalidator_unittest.cc View 1 2 3 4 1 chunk +0 lines, -189 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.h View 1 2 3 4 5 8 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service.cc View 1 2 3 4 5 7 chunks +18 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/device_local_account_policy_service_unittest.cc View 1 2 3 13 chunks +13 lines, -1 line 0 comments Download
A chrome/browser/chromeos/policy/fake_affiliated_invalidation_service_provider.h View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/policy/fake_affiliated_invalidation_service_provider.cc View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/invalidation/profile_invalidation_provider_factory.h View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M components/policy/core/common/cloud/mock_cloud_policy_client.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M components/policy/core/common/cloud/mock_cloud_policy_client.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
bartfab (slow)
Hi Mattias, Could you take a look please? I had to make both DeviceSettingsService and ...
5 years, 11 months ago (2015-01-20 15:58:46 UTC) #2
Mattias Nissler (ping if slow)
I'm really sad about the singleton proliferation - I'll need to take some more time ...
5 years, 11 months ago (2015-01-21 13:07:33 UTC) #3
bartfab (slow)
On 2015/01/21 13:07:33, Mattias Nissler wrote: > I'm really sad about the singleton proliferation - ...
5 years, 11 months ago (2015-01-21 13:15:58 UTC) #4
bartfab (slow)
On 2015/01/21 13:15:58, bartfab wrote: > On 2015/01/21 13:07:33, Mattias Nissler wrote: > > I'm ...
5 years, 11 months ago (2015-01-21 14:16:44 UTC) #5
bartfab (slow)
On 2015/01/21 14:16:44, bartfab wrote: > On 2015/01/21 13:15:58, bartfab wrote: > > On 2015/01/21 ...
5 years, 11 months ago (2015-01-27 15:35:51 UTC) #6
Mattias Nissler (ping if slow)
On 2015/01/27 15:35:51, bartfab wrote: > On 2015/01/21 14:16:44, bartfab wrote: > > On 2015/01/21 ...
5 years, 10 months ago (2015-01-28 09:04:28 UTC) #7
bartfab (slow)
Hi Xiyuan, Could you take a look at device_settings_test_helper.cc? Mattias is on vacation and I ...
5 years, 10 months ago (2015-01-29 14:38:21 UTC) #9
xiyuan
device_settings_test_helper.cc LGTM
5 years, 10 months ago (2015-01-29 17:40:58 UTC) #10
pneubeck (no reviews)
https://codereview.chromium.org/822523003/diff/40001/chrome/browser/chromeos/policy/cloud_external_data_policy_observer_unittest.cc File chrome/browser/chromeos/policy/cloud_external_data_policy_observer_unittest.cc (right): https://codereview.chromium.org/822523003/diff/40001/chrome/browser/chromeos/policy/cloud_external_data_policy_observer_unittest.cc#newcode204 chrome/browser/chromeos/policy/cloud_external_data_policy_observer_unittest.cc:204: NULL)); nit: nullptr https://codereview.chromium.org/822523003/diff/40001/chrome/browser/chromeos/policy/device_local_account_policy_service.h File chrome/browser/chromeos/policy/device_local_account_policy_service.h (right): https://codereview.chromium.org/822523003/diff/40001/chrome/browser/chromeos/policy/device_local_account_policy_service.h#newcode67 chrome/browser/chromeos/policy/device_local_account_policy_service.h:67: ...
5 years, 10 months ago (2015-01-30 14:23:59 UTC) #11
bartfab (slow)
https://codereview.chromium.org/822523003/diff/40001/chrome/browser/chromeos/policy/cloud_external_data_policy_observer_unittest.cc File chrome/browser/chromeos/policy/cloud_external_data_policy_observer_unittest.cc (right): https://codereview.chromium.org/822523003/diff/40001/chrome/browser/chromeos/policy/cloud_external_data_policy_observer_unittest.cc#newcode204 chrome/browser/chromeos/policy/cloud_external_data_policy_observer_unittest.cc:204: NULL)); On 2015/01/30 14:23:58, pneubeck wrote: > nit: nullptr ...
5 years, 10 months ago (2015-02-03 18:31:06 UTC) #12
bartfab (slow)
5 years, 10 months ago (2015-02-03 18:32:39 UTC) #13
pneubeck (no reviews)
lgtm, thanks for the clean up. https://codereview.chromium.org/822523003/diff/60001/chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator.h File chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator.h (right): https://codereview.chromium.org/822523003/diff/60001/chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator.h#newcode30 chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator.h:30: // the |CloudPolicyInvalidator| ...
5 years, 10 months ago (2015-02-04 10:02:14 UTC) #14
bartfab (slow)
https://codereview.chromium.org/822523003/diff/60001/chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator.h File chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator.h (right): https://codereview.chromium.org/822523003/diff/60001/chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator.h#newcode30 chrome/browser/chromeos/policy/affiliated_cloud_policy_invalidator.h:30: // the |CloudPolicyInvalidator| destroyed and re-created. On 2015/02/04 10:02:13, ...
5 years, 10 months ago (2015-02-04 12:34:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/822523003/100001
5 years, 10 months ago (2015-02-04 12:37:12 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja_ng/builds/7201) mac_chromium_rel_ng on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/30450)
5 years, 10 months ago (2015-02-04 12:40:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/822523003/120001
5 years, 10 months ago (2015-02-04 13:06:28 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/22780)
5 years, 10 months ago (2015-02-04 14:37:57 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/822523003/120001
5 years, 10 months ago (2015-02-04 14:43:35 UTC) #26
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-04 15:18:31 UTC) #27
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 15:19:39 UTC) #28
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/c016e1d9659631a932e335c551c58516a0413ea7
Cr-Commit-Position: refs/heads/master@{#314562}

Powered by Google App Engine
This is Rietveld 408576698