Index: chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h |
diff --git a/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h b/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h |
index 97f3add6897418ace4aea06720c7c48755d2ebb7..188333898a485b5548eeb188041345e274993185 100644 |
--- a/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h |
+++ b/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h |
@@ -37,7 +37,9 @@ class PrefService; |
namespace policy { |
class DeviceCloudPolicyStoreChromeOS; |
+class ForwardingSchemaRegistry; |
class HeartbeatScheduler; |
+class SchemaRegistry; |
class StatusUploader; |
class SystemLogUploader; |
@@ -114,6 +116,20 @@ class DeviceCloudPolicyManagerChromeOS : public CloudPolicyManager { |
// policy server. |
StatusUploader* GetStatusUploader() const { return status_uploader_.get(); } |
+ // Passes the pointer to the schema registry that corresponds to the signin |
+ // profile. |
+ // |
+ // After this method is called, the component cloud policy manager becomes |
+ // associated with this schema registry. |
+ void SetSigninProfileSchemaRegistry(SchemaRegistry* schema_registry); |
+ |
+ // Sets whether the component cloud policy service should be created. |
+ // Defaults to true. |
+ void set_is_component_policy_enabled_for_testing( |
+ bool is_component_policy_enabled) { |
+ is_component_policy_enabled_ = is_component_policy_enabled; |
+ } |
+ |
private: |
// Saves the state keys received from |session_manager_client_|. |
void OnStateKeysUpdated(); |
@@ -154,6 +170,14 @@ class DeviceCloudPolicyManagerChromeOS : public CloudPolicyManager { |
std::unique_ptr<chromeos::attestation::AttestationPolicyObserver> |
attestation_policy_observer_; |
+ // Wrapper schema registry that will track the signin profile schema registry |
+ // once it is passed to this class. |
+ std::unique_ptr<ForwardingSchemaRegistry> |
+ signin_profile_forwarding_schema_registry_; |
+ |
+ // Whether the component cloud policy service should be created. |
+ bool is_component_policy_enabled_ = true; |
+ |
base::ObserverList<Observer, true> observers_; |
DISALLOW_COPY_AND_ASSIGN(DeviceCloudPolicyManagerChromeOS); |