Add log when LoadEntitledContentKeys fails

Test: CE CDM tests, Android unit/integration tests
Merge of http://go/wvgerrit/73464

LoadEntitledContentKeys result is logged in SelectKey when it fails.
Requested as part of http://go/wvgerrit/73144.

Change-Id: I063497144ff3370b817e12c0535580e54cfec1d8
This commit is contained in:
Srujan Gaddam
2019-02-27 11:26:02 -08:00
parent 99cea1b363
commit 8d54b99b75

View File

@@ -69,6 +69,7 @@ OEMCryptoResult EntitlementKeySession::SelectKey(const std::string& key_id,
message.size(), 1, &entitled_key),
metrics_, oemcrypto_load_entitled_keys_, result);
if (result != OEMCrypto_SUCCESS) {
LOGE("SelectKey: OEMCrypto_LoadEntitledContentKeys error=%d", result);
return result;
}