Add AffiliatedInvalidationServiceProvider
Device policy pushing requires a connected invalidation service which belongs to an account that is affiliated with the device's enrollment domain. If an affiliated user is logged in and has a connected per-profile invalidation service, that service is used. Otherwise, a device-global invalidation service is spun up. This CL extracts the mechanism from DeviceCloudPolicyInvalidator and generalizes it so that it can be used by any number of consumers. This will allow the same invalidation service to be resued by e.g. device policy pushing, device-local account policy pushing and device remote commands. The CL adds a new AffiliatedInvalidationServiceProvider with tests but does not switch the DeviceCloudPolicyInvalidator to this new infrastructure yet. That will be done in a follow-up CL. BUG=442800 TEST=New unit tests Review URL: https://codereview.chromium.org/828953004 Cr-Commit-Position: refs/heads/master@{#313488}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment