Merge "Address review comments for OEMCrypto Build Information"
This commit is contained in:
committed by
Android (Google) Code Review
commit
f3b65702ca
@@ -150,7 +150,12 @@ CdmResponseType ClientIdentification::Prepare(
|
|||||||
client_info->set_name(kKeyOemCryptoSecurityPatchLevel);
|
client_info->set_name(kKeyOemCryptoSecurityPatchLevel);
|
||||||
client_info->set_value(
|
client_info->set_value(
|
||||||
std::to_string((uint32_t)crypto_session_->GetSecurityPatchLevel()));
|
std::to_string((uint32_t)crypto_session_->GetSecurityPatchLevel()));
|
||||||
|
std::string oec_build_info;
|
||||||
|
if (crypto_session_->GetBuildInformation(&oec_build_info)) {
|
||||||
|
client_info = client_id->add_client_info();
|
||||||
|
client_info->set_name(kKeyOemCryptoBuildInformation);
|
||||||
|
client_info->set_value(oec_build_info);
|
||||||
|
}
|
||||||
if (!provider_client_token.empty()) {
|
if (!provider_client_token.empty()) {
|
||||||
client_id->set_provider_client_token(provider_client_token);
|
client_id->set_provider_client_token(provider_client_token);
|
||||||
}
|
}
|
||||||
@@ -273,12 +278,6 @@ CdmResponseType ClientIdentification::Prepare(
|
|||||||
client_capabilities->set_resource_rating_tier(tier);
|
client_capabilities->set_resource_rating_tier(tier);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
std::string info;
|
|
||||||
if (crypto_session_->GetBuildInformation(&info)) {
|
|
||||||
client_info = client_id->add_client_info();
|
|
||||||
client_info->set_name(kKeyOemCryptoBuildInformation);
|
|
||||||
client_info->set_value(info);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NO_ERROR;
|
return NO_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user