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

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

Issue 2440473004: Add policy domain for signin screen apps (Closed)
Patch Set: Fix compilation 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: 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..72f59278771b64d1e0448d2d7e306e0e9761279e 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,8 @@ class POLICY_EXPORT ComponentCloudPolicyService
virtual void OnComponentCloudPolicyUpdated() = 0;
};
+ // |policy_type| specifies the policy type that should be fetched.
+ //
// The |delegate| is notified of updates to the downloaded policies and must
// outlive this object.
//
@@ -81,6 +84,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 +137,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