diff options
Diffstat (limited to 'content/renderer/media/crypto/render_cdm_factory.cc')
-rw-r--r-- | content/renderer/media/crypto/render_cdm_factory.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/content/renderer/media/crypto/render_cdm_factory.cc b/content/renderer/media/crypto/render_cdm_factory.cc index 6e81163..0bd15f3 100644 --- a/content/renderer/media/crypto/render_cdm_factory.cc +++ b/content/renderer/media/crypto/render_cdm_factory.cc @@ -57,7 +57,7 @@ void RenderCdmFactory::Create( if (!security_origin.is_valid()) { base::MessageLoopProxy::current()->PostTask( - FROM_HERE, base::Bind(cdm_created_cb, nullptr)); + FROM_HERE, base::Bind(cdm_created_cb, nullptr, "Invalid origin.")); return; } @@ -70,7 +70,7 @@ void RenderCdmFactory::Create( new media::AesDecryptor(security_origin, session_message_cb, session_closed_cb, session_keys_change_cb)); base::MessageLoopProxy::current()->PostTask( - FROM_HERE, base::Bind(cdm_created_cb, base::Passed(&cdm))); + FROM_HERE, base::Bind(cdm_created_cb, base::Passed(&cdm), "")); return; } @@ -90,7 +90,8 @@ void RenderCdmFactory::Create( #else // No possible CDM to create, so fail the request. base::MessageLoopProxy::current()->PostTask( - FROM_HERE, base::Bind(cdm_created_cb, nullptr)); + FROM_HERE, + base::Bind(cdm_created_cb, nullptr, "Key system not supported.")); #endif // defined(ENABLE_PEPPER_CDMS) } |