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

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

Issue 756133002: Purge cache when the server removes the policy for an extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win build Created 6 years 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 6112cbeeace68360d0c135305c5a31a1b8092575..aa9f11f54d3fec10e84954add3c43180f743886a 100644
--- a/components/policy/core/common/cloud/component_cloud_policy_service.h
+++ b/components/policy/core/common/cloud/component_cloud_policy_service.h
@@ -65,6 +65,12 @@ class POLICY_EXPORT ComponentCloudPolicyService
// and registration credentials; the client will be used to fetch cloud
// policy. It must outlive this object.
//
+ // The |core| MUST not be connected yet when this service is created;
+ // |client| must be the client that will be connected to the |core|. This
+ // is important to make sure that this service appends any necessary policy
+ // fetch types to the |client| before the |core| gets connected and before
+ // the initial policy fetch request is sent out.
+ //
// |cache| is used to load and store local copies of the downloaded policies.
//
// Download scheduling, validation and caching of policies are done via the
@@ -76,6 +82,7 @@ class POLICY_EXPORT ComponentCloudPolicyService
Delegate* delegate,
SchemaRegistry* schema_registry,
CloudPolicyCore* core,
+ CloudPolicyClient* client,
#if !defined(OS_ANDROID) && !defined(OS_IOS)
scoped_ptr<ResourceCache> cache,
#endif

Powered by Google App Engine
This is Rietveld 408576698