| 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..e04d0135c50aca9d48d13543da800e56703a4c16 100644
|
| --- a/media/blink/cdm_result_promise_helper.cc
|
| +++ b/media/blink/cdm_result_promise_helper.cc
|
| @@ -39,15 +39,18 @@ blink::WebContentDecryptionModuleException ConvertCdmException(
|
| case MediaKeys::INVALID_STATE_ERROR:
|
| return blink::WebContentDecryptionModuleExceptionInvalidStateError;
|
| case MediaKeys::INVALID_ACCESS_ERROR:
|
| - return blink::WebContentDecryptionModuleExceptionInvalidAccessError;
|
| + // TODO(jrummell): Since InvalidAccess is not returned, thus should be
|
| + // renamed to TYPE_ERROR. http://crbug.com/570216#c11.
|
| + return blink::WebContentDecryptionModuleExceptionTypeError;
|
| case MediaKeys::QUOTA_EXCEEDED_ERROR:
|
| return blink::WebContentDecryptionModuleExceptionQuotaExceededError;
|
| case MediaKeys::UNKNOWN_ERROR:
|
| return blink::WebContentDecryptionModuleExceptionUnknownError;
|
| case MediaKeys::CLIENT_ERROR:
|
| - return blink::WebContentDecryptionModuleExceptionClientError;
|
| case MediaKeys::OUTPUT_ERROR:
|
| - return blink::WebContentDecryptionModuleExceptionOutputError;
|
| + // These are deprecated, and should be removed.
|
| + // http://crbug.com/570216#c11.
|
| + break;
|
| }
|
| NOTREACHED();
|
| return blink::WebContentDecryptionModuleExceptionUnknownError;
|
|
|