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

Unified Diff: components/policy/core/common/cloud/component_cloud_policy_service.h

Issue 2440473004: Add policy domain for signin screen apps (Closed)
Patch Set: More comments according to feedback Created 4 years, 1 month 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: components/policy/core/common/cloud/component_cloud_policy_service.h
diff --git a/components/policy/core/common/cloud/component_cloud_policy_service.h b/components/policy/core/common/cloud/component_cloud_policy_service.h
index 7adaf2805cac81761a92597d6929e83125256006..a6ac3480280df94c7430a62bdff4d5f7da25ad15 100644
--- a/components/policy/core/common/cloud/component_cloud_policy_service.h
+++ b/components/policy/core/common/cloud/component_cloud_policy_service.h
@@ -6,6 +6,7 @@
#define COMPONENTS_POLICY_CORE_COMMON_CLOUD_COMPONENT_CLOUD_POLICY_SERVICE_H_
#include <memory>
+#include <string>
#include "base/compiler_specific.h"
#include "base/macros.h"
@@ -56,6 +57,10 @@ class POLICY_EXPORT ComponentCloudPolicyService
virtual void OnComponentCloudPolicyUpdated() = 0;
};
+ // |policy_type| specifies the policy type that should be fetched. The only
+ // allowed values are: |dm_protocol::kChromeExtensionPolicyType|,
+ // |dm_protocol::kChromeSigninExtensionPolicyType|.
+ //
// The |delegate| is notified of updates to the downloaded policies and must
// outlive this object.
//
@@ -81,6 +86,7 @@ class POLICY_EXPORT ComponentCloudPolicyService
//
// |request_context| is used by the background URLFetchers.
ComponentCloudPolicyService(
+ const std::string& policy_type,
Delegate* delegate,
SchemaRegistry* schema_registry,
CloudPolicyCore* core,
@@ -133,6 +139,7 @@ class POLICY_EXPORT ComponentCloudPolicyService
void ReloadSchema();
void OnPolicyUpdated(std::unique_ptr<PolicyBundle> policy);
+ std::string policy_type_;
Delegate* delegate_;
SchemaRegistry* schema_registry_;
CloudPolicyCore* core_;

Powered by Google App Engine
This is Rietveld 408576698