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

Unified Diff: chrome/browser/chromeos/attestation/attestation_policy_observer.h

Issue 1511793004: attestation: Fix policy observer expiry check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nit Created 5 years 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/attestation/attestation_policy_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/attestation/attestation_policy_observer.h
diff --git a/chrome/browser/chromeos/attestation/attestation_policy_observer.h b/chrome/browser/chromeos/attestation/attestation_policy_observer.h
index ec595370545e1b652ccfed09318b6358c841f033..fa1a64d60b7a111d44158a974e0e40d546ac7039 100644
--- a/chrome/browser/chromeos/attestation/attestation_policy_observer.h
+++ b/chrome/browser/chromeos/attestation/attestation_policy_observer.h
@@ -63,14 +63,15 @@ class AttestationPolicyObserver {
// Gets the existing EMK certificate and sends it to CheckCertificateExpiry.
void GetExistingCertificate();
- // Checks if the given certificate is expired and, if so, get a new one.
- void CheckCertificateExpiry(const std::string& certificate);
+ // Checks if any certificate in the given pem_certificate_chain is expired
+ // and, if so, gets a new one. If not renewing, calls CheckIfUploaded.
+ void CheckCertificateExpiry(const std::string& pem_certificate_chain);
// Uploads a certificate to the policy server.
- void UploadCertificate(const std::string& certificate);
+ void UploadCertificate(const std::string& pem_certificate_chain);
// Checks if a certificate has already been uploaded and, if not, upload.
- void CheckIfUploaded(const std::string& certificate,
+ void CheckIfUploaded(const std::string& pem_certificate_chain,
const std::string& key_payload);
// Gets the payload associated with the EMK and sends it to |callback|.
« no previous file with comments | « no previous file | chrome/browser/chromeos/attestation/attestation_policy_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698