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

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

Issue 2507423002: Remove unnecessary plumbing for policy verification key (Closed)
Patch Set: git cl format and 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.h
diff --git a/components/policy/core/common/cloud/user_cloud_policy_store.h b/components/policy/core/common/cloud/user_cloud_policy_store.h
index 3dde9330392db4acd3191461a0263abafa0630bd..39f28bbfbc394b39729918640a029081a5a13830 100644
--- a/components/policy/core/common/cloud/user_cloud_policy_store.h
+++ b/components/policy/core/common/cloud/user_cloud_policy_store.h
@@ -37,7 +37,6 @@ class POLICY_EXPORT UserCloudPolicyStore : public UserCloudPolicyStoreBase {
UserCloudPolicyStore(
const base::FilePath& policy_file,
const base::FilePath& key_file,
- const std::string& verification_key,
scoped_refptr<base::SequencedTaskRunner> background_task_runner);
~UserCloudPolicyStore() override;
@@ -45,7 +44,6 @@ class POLICY_EXPORT UserCloudPolicyStore : public UserCloudPolicyStoreBase {
// |profile_path|.
static std::unique_ptr<UserCloudPolicyStore> Create(
const base::FilePath& profile_path,
- const std::string& verification_key,
scoped_refptr<base::SequencedTaskRunner> background_task_runner);
// The username from signin for validation of the policy.
@@ -79,7 +77,6 @@ class POLICY_EXPORT UserCloudPolicyStore : public UserCloudPolicyStoreBase {
void Validate(
std::unique_ptr<enterprise_management::PolicyFetchResponse> policy,
std::unique_ptr<enterprise_management::PolicySigningKey> key,
- const std::string& verification_key,
bool validate_in_background,
const UserCloudPolicyValidator::CompletionCallback& callback);
@@ -104,9 +101,6 @@ class POLICY_EXPORT UserCloudPolicyStore : public UserCloudPolicyStoreBase {
// Path to file where we store the signing key for the policy blob.
base::FilePath key_path_;
- // The hard-coded key used to verify new signing keys.
- const std::string verification_key_;
-
// The username from signin for validation of the policy.
std::string signin_username_;

Powered by Google App Engine
This is Rietveld 408576698