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

Unified Diff: chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api.cc

Issue 14305009: Enhanced and refactored the AttestationFlow interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased again Created 7 years, 8 months 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/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api.cc
diff --git a/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api.cc b/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api.cc
index 740b19b2d518715b1b4165316719452551e4cc67..bde7410963523a5ec08a1f72503dd4cf90b2fdce 100644
--- a/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api.cc
+++ b/chrome/browser/extensions/api/enterprise_platform_keys_private/enterprise_platform_keys_private_api.cc
@@ -129,11 +129,11 @@ void EPKPChallengeMachineKey::GetDeviceAttestationEnabledCallback(
// Everything is checked. Sign the challenge.
async_caller_->TpmAttestationSignEnterpriseChallenge(
- chromeos::CryptohomeClient::DEVICE_KEY,
+ chromeos::attestation::KEY_DEVICE,
kKeyName,
GetEnterpriseDomain(),
GetDeviceId(),
- chromeos::CryptohomeClient::CHALLENGE_RESPONSE_OPTION_NONE,
+ chromeos::attestation::CHALLENGE_OPTION_NONE,
challenge,
base::Bind(&EPKPChallengeMachineKey::SignChallengeCallback, this));
}
@@ -255,12 +255,13 @@ void EPKPChallengeUserKey::UserConsentCallback(const std::string& challenge,
// Everything is checked. Sign the challenge.
async_caller_->TpmAttestationSignEnterpriseChallenge(
- chromeos::CryptohomeClient::USER_KEY,
+ chromeos::attestation::KEY_USER,
kKeyName,
domain,
GetDeviceId(),
- register_key ? chromeos::CryptohomeClient::INCLUDE_SIGNED_PUBLIC_KEY :
- chromeos::CryptohomeClient::CHALLENGE_RESPONSE_OPTION_NONE,
+ register_key ?
+ chromeos::attestation::CHALLENGE_INCLUDE_SIGNED_PUBLIC_KEY :
+ chromeos::attestation::CHALLENGE_OPTION_NONE,
challenge,
base::Bind(&EPKPChallengeUserKey::SignChallengeCallback, this,
register_key));
@@ -277,7 +278,7 @@ void EPKPChallengeUserKey::SignChallengeCallback(bool register_key,
if (register_key) {
async_caller_->TpmAttestationRegisterKey(
- chromeos::CryptohomeClient::USER_KEY,
+ chromeos::attestation::KEY_USER,
kKeyName,
base::Bind(&EPKPChallengeUserKey::RegisterKeyCallback, this, response));
} else {
« no previous file with comments | « chrome/browser/chromeos/policy/device_local_account_browsertest.cc ('k') | chromeos/attestation/attestation_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698