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

Unified Diff: chrome/browser/chromeos/policy/user_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
Index: chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc b/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc
index b99fae200270fb75113049889c283b9e21f98014..0893816d19a97bc2bd6c4e424c8d40c8f729fc6c 100644
--- a/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc
+++ b/chrome/browser/chromeos/policy/user_cloud_policy_store_chromeos.cc
@@ -150,12 +150,10 @@ void UserCloudPolicyStoreChromeOS::ValidatePolicyForStore(
std::move(policy), CloudPolicyValidatorBase::TIMESTAMP_FULLY_VALIDATED);
validator->ValidateUsername(account_id_.GetUserEmail(), true);
if (cached_policy_key_.empty()) {
- validator->ValidateInitialKey(GetPolicyVerificationKey(),
- ExtractDomain(account_id_.GetUserEmail()));
+ validator->ValidateInitialKey(ExtractDomain(account_id_.GetUserEmail()));
} else {
validator->ValidateSignatureAllowingRotation(
- cached_policy_key_, GetPolicyVerificationKey(),
- ExtractDomain(account_id_.GetUserEmail()));
+ cached_policy_key_, ExtractDomain(account_id_.GetUserEmail()));
}
// Start validation. The Validator will delete itself once validation is

Powered by Google App Engine
This is Rietveld 408576698