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

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

Issue 2488573003: Expose signing key from cloud policy stores (Closed)
Patch Set: Rebase 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/user_cloud_policy_store_base.cc
diff --git a/components/policy/core/common/cloud/user_cloud_policy_store_base.cc b/components/policy/core/common/cloud/user_cloud_policy_store_base.cc
index 8c3b0e22a039bb2b67839423deb5ce6ae1089eb7..46dffc220e5ff5553beff073019de168ffca0754 100644
--- a/components/policy/core/common/cloud/user_cloud_policy_store_base.cc
+++ b/components/policy/core/common/cloud/user_cloud_policy_store_base.cc
@@ -45,11 +45,13 @@ UserCloudPolicyStoreBase::CreateValidator(
void UserCloudPolicyStoreBase::InstallPolicy(
std::unique_ptr<enterprise_management::PolicyData> policy_data,
- std::unique_ptr<enterprise_management::CloudPolicySettings> payload) {
+ std::unique_ptr<enterprise_management::CloudPolicySettings> payload,
+ const std::string& policy_signature_public_key) {
// Decode the payload.
policy_map_.Clear();
DecodePolicy(*payload, external_data_manager(), &policy_map_);
policy_ = std::move(policy_data);
+ policy_signature_public_key_ = policy_signature_public_key;
}
} // namespace policy

Powered by Google App Engine
This is Rietveld 408576698