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

Unified Diff: chromeos/attestation/attestation_flow.cc

Issue 2261763002: Device enterprise registration with a certificate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not call directly into Chrome OS. Add a field to SignedData to account for extra data like nonce… Created 4 years, 4 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: chromeos/attestation/attestation_flow.cc
diff --git a/chromeos/attestation/attestation_flow.cc b/chromeos/attestation/attestation_flow.cc
index 45e4c896a96cfe43d78998db74ac1caa36541bc9..f0d283f13a48f70250a61102485bfc722ec292a1 100644
--- a/chromeos/attestation/attestation_flow.cc
+++ b/chromeos/attestation/attestation_flow.cc
@@ -57,7 +57,9 @@ void DBusDataMethodCallback(
callback.Run(result, data);
}
-AttestationKeyType GetKeyTypeForProfile(
+} // namespace
+
+AttestationKeyType AttestationFlow::GetKeyTypeForProfile(
AttestationCertificateProfile profile) {
switch (profile) {
case PROFILE_ENTERPRISE_MACHINE_CERTIFICATE:
@@ -71,8 +73,9 @@ AttestationKeyType GetKeyTypeForProfile(
return KEY_USER;
}
-std::string GetKeyNameForProfile(AttestationCertificateProfile profile,
- const std::string& origin) {
+std::string AttestationFlow::GetKeyNameForProfile(
+ AttestationCertificateProfile profile,
+ const std::string& origin) {
switch (profile) {
case PROFILE_ENTERPRISE_MACHINE_CERTIFICATE:
case PROFILE_ENTERPRISE_ENROLLMENT_CERTIFICATE:
@@ -86,8 +89,6 @@ std::string GetKeyNameForProfile(AttestationCertificateProfile profile,
return "";
}
-} // namespace
-
AttestationFlow::AttestationFlow(cryptohome::AsyncMethodCaller* async_caller,
CryptohomeClient* cryptohome_client,
std::unique_ptr<ServerProxy> server_proxy)

Powered by Google App Engine
This is Rietveld 408576698