Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(772)

Unified Diff: chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h

Issue 2441653003: Enable fetching of admin policies for login screen apps (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698