DescriptionMove ownership of the ComponentCloudPolicyService to the broker.
The ComponentCloudPolicyService needs to work with the SchemaRegistry,
so it was initially owned by the DeviceLocalAccountPolicyProvider
(which always has a valid reference to the registry). However, this
means that the ComponentCloudPolicyService can't precache any policies
until the session is started.
To enable precaching at enrollment time and at the login screen, the
ComponentCloudPolicyService has been moved to the broker instead.
This allows some code simplifications too, but requires changing the
ownership of the SchemaRegistry for device local accounts.
This CL is just moving code around; a subsequent CL will trigger
the precaching.
TBR=zelidrag@chromium.org
BUG=224596
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278847
Patch Set 1 #Patch Set 2 : rebase #Patch Set 3 : fix clang build #
Total comments: 20
Patch Set 4 : fixed comments #
Total comments: 12
Patch Set 5 : fixed initialization of the registry, fixed nit in testserver #Patch Set 6 : rebase #Patch Set 7 : addressed nits #Patch Set 8 : fixed tests #Patch Set 9 : rebase #Messages
Total messages: 9 (0 generated)
|