| Index: media/blink/cdm_result_promise_helper.cc
|
| diff --git a/media/blink/cdm_result_promise_helper.cc b/media/blink/cdm_result_promise_helper.cc
|
| index c96121a0fed7aac94bb58165df4f8112e9b12b74..5d0a5e58f2a1b9b6684d1c096abbe6bd017b0c4b 100644
|
| --- a/media/blink/cdm_result_promise_helper.cc
|
| +++ b/media/blink/cdm_result_promise_helper.cc
|
| @@ -38,16 +38,21 @@ blink::WebContentDecryptionModuleException ConvertCdmException(
|
| return blink::WebContentDecryptionModuleExceptionNotSupportedError;
|
| case MediaKeys::INVALID_STATE_ERROR:
|
| return blink::WebContentDecryptionModuleExceptionInvalidStateError;
|
| +
|
| + // TODO(jrummell): Since InvalidAccess is not returned, thus should be
|
| + // renamed to TYPE_ERROR. http://crbug.com/570216#c11.
|
| case MediaKeys::INVALID_ACCESS_ERROR:
|
| - return blink::WebContentDecryptionModuleExceptionInvalidAccessError;
|
| + return blink::WebContentDecryptionModuleExceptionTypeError;
|
| case MediaKeys::QUOTA_EXCEEDED_ERROR:
|
| return blink::WebContentDecryptionModuleExceptionQuotaExceededError;
|
| case MediaKeys::UNKNOWN_ERROR:
|
| return blink::WebContentDecryptionModuleExceptionUnknownError;
|
| +
|
| + // These are deprecated, and should be removed.
|
| + // http://crbug.com/570216#c11.
|
| case MediaKeys::CLIENT_ERROR:
|
| - return blink::WebContentDecryptionModuleExceptionClientError;
|
| case MediaKeys::OUTPUT_ERROR:
|
| - return blink::WebContentDecryptionModuleExceptionOutputError;
|
| + break;
|
| }
|
| NOTREACHED();
|
| return blink::WebContentDecryptionModuleExceptionUnknownError;
|
|
|