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

Unified Diff: components/policy/core/common/cloud/policy_header_service.cc

Issue 2530103002: Remove device policy store from PolicyHeaderService since it's not used. (Closed)
Patch Set: 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/policy_header_service.cc
diff --git a/components/policy/core/common/cloud/policy_header_service.cc b/components/policy/core/common/cloud/policy_header_service.cc
index 9589bbca00e7f8dce86c5f61f5c9ef419ddaecf8..d0d4560f44d8f301ebe4a2bf20bd39dead2a6706 100644
--- a/components/policy/core/common/cloud/policy_header_service.cc
+++ b/components/policy/core/common/cloud/policy_header_service.cc
@@ -22,21 +22,15 @@ namespace policy {
PolicyHeaderService::PolicyHeaderService(
const std::string& server_url,
const std::string& verification_key_hash,
- CloudPolicyStore* user_policy_store,
- CloudPolicyStore* device_policy_store)
+ CloudPolicyStore* user_policy_store)
: server_url_(server_url),
verification_key_hash_(verification_key_hash),
- user_policy_store_(user_policy_store),
- device_policy_store_(device_policy_store) {
+ user_policy_store_(user_policy_store) {
user_policy_store_->AddObserver(this);
- if (device_policy_store_)
- device_policy_store_->AddObserver(this);
}
PolicyHeaderService::~PolicyHeaderService() {
user_policy_store_->RemoveObserver(this);
- if (device_policy_store_)
- device_policy_store_->RemoveObserver(this);
}
std::unique_ptr<PolicyHeaderIOHelper>

Powered by Google App Engine
This is Rietveld 408576698