ComponentCloudPolicyService tracks the signin state.
The ComponentCloudPolicyService is used to fetch policy for Chrome components
such as extensions. This change makes it follow the sign-in state by observing
the cloud policy store and a cloud policy core, which determine that state
from the cloud policy system perspective.
The component policy cache will be cleared on signout.
The ComponentCloudPolicyService now tracks a CloudPolicyCore to determine
whether a CloudPolicyClient is available or not; it is possible to signin
and signout multiple times.
BUG=108992
Review URL: https://codereview.chromium.org/72793003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235747 0039d316-1c4b-4281-b951-d872f2087c98
CrOS-Libchrome-Original-Commit: 82eb8de8f40e9c523169542039de03f978b2a8fe
2 files changed