Refactor ComponentCloudPolicyStore.
Refactor the class as one instance only supports one policy type and domain pair. PolicyDomain is now the member of class which indicates the type/domain instance owned. Also, 1) Remove domain to DomainConstants converting as there're two policy types use the same policy domain. 2) Store()/Delete() check whether the policy namespace matches the owned domain or not. 3) Purge() only filters on the owned domain. Bug: 867028 Change-Id: I7fc5650bb11e0ea6db362efc113eca049fdd2fb1 Reviewed-on: https://chromium-review.googlesource.com/1155653 Commit-Queue: Owen Min <zmin@chromium.org> Reviewed-by:Lutz Justen <ljusten@chromium.org> Cr-Commit-Position: refs/heads/master@{#579815}
Showing
This diff is collapsed.
Please register or sign in to comment