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

Unified Diff: chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc

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
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc b/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc
index 46f96083994df114f85a370f2148a843393417cf..f7cec97269b1e9acfcdd561afa7a79e456b88129 100644
--- a/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc
+++ b/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.cc
@@ -61,8 +61,7 @@ void DeviceCloudPolicyStoreChromeOS::Store(
std::unique_ptr<DeviceCloudPolicyValidator> validator(
CreateValidator(policy));
validator->ValidateSignatureAllowingRotation(
- public_key->as_string(), GetPolicyVerificationKey(),
- install_attributes_->GetDomain());
+ public_key->as_string(), install_attributes_->GetDomain());
validator->ValidateAgainstCurrentPolicy(
device_settings_service_->policy_data(),
CloudPolicyValidatorBase::TIMESTAMP_FULLY_VALIDATED,
@@ -90,8 +89,7 @@ void DeviceCloudPolicyStoreChromeOS::InstallInitialPolicy(
std::unique_ptr<DeviceCloudPolicyValidator> validator(
CreateValidator(policy));
- validator->ValidateInitialKey(GetPolicyVerificationKey(),
- install_attributes_->GetDomain());
+ validator->ValidateInitialKey(install_attributes_->GetDomain());
validator.release()->StartValidation(
base::Bind(&DeviceCloudPolicyStoreChromeOS::OnPolicyToStoreValidated,
weak_factory_.GetWeakPtr()));
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698