Do not store information for kLicenseTypeTemporary
[ Merge of http://go/wvgerrit/105624 ] Temporary licenses do not allow for license information to be stored in any form, whether it is usage information or persisting license information. Information should not be stored even if can_persist is set to true and a PST is specified as those are suggestions rather than a requirement. Bug: 167684104 Test: WV unit/integration tests Change-Id: I141a2bd5de4d86f0e5f31fc8f0ea9e20710d6469
This commit is contained in:
@@ -485,6 +485,7 @@ CdmResponseType CdmSession::GenerateKeyRequestInternal(
|
||||
switch (license_type) {
|
||||
case kLicenseTypeTemporary:
|
||||
is_temporary_ = true;
|
||||
is_offline_ = false;
|
||||
break;
|
||||
case kLicenseTypeStreaming:
|
||||
is_offline_ = false;
|
||||
@@ -625,7 +626,7 @@ CdmResponseType CdmSession::AddKeyInternal(const CdmKeyResponse& key_response) {
|
||||
license_parser_->provider_session_token().c_str(),
|
||||
license_parser_->provider_session_token().size());
|
||||
|
||||
if (is_offline_ || has_provider_session_token()) {
|
||||
if ((is_offline_ || has_provider_session_token()) && !is_temporary_) {
|
||||
if (has_provider_session_token() &&
|
||||
usage_support_type_ == kUsageEntrySupport &&
|
||||
usage_table_header_ != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user