Commit f7c62ece authored by John Rummell's avatar John Rummell Committed by Commit Bot

Add logging message to indicate success/failure

When debugging it is nice to knwo the reason that
requestMediaKeySystemAccess() failed.

BUG=924991

Change-Id: I352beb27f9a0c2fb82444ae92a4d740a886fa8e0
Reviewed-on: https://chromium-review.googlesource.com/c/1435219Reviewed-by: default avatarXiaohan Wang <xhwang@chromium.org>
Commit-Queue: John Rummell <jrummell@chromium.org>
Cr-Commit-Position: refs/heads/master@{#625806}
parent 4bccf829
...@@ -216,6 +216,8 @@ const SecurityOrigin* MediaKeySystemAccessInitializer::GetSecurityOrigin() ...@@ -216,6 +216,8 @@ const SecurityOrigin* MediaKeySystemAccessInitializer::GetSecurityOrigin()
void MediaKeySystemAccessInitializer::RequestSucceeded( void MediaKeySystemAccessInitializer::RequestSucceeded(
WebContentDecryptionModuleAccess* access) { WebContentDecryptionModuleAccess* access) {
DVLOG(3) << __func__;
if (!IsExecutionContextValid()) if (!IsExecutionContextValid())
return; return;
...@@ -226,6 +228,8 @@ void MediaKeySystemAccessInitializer::RequestSucceeded( ...@@ -226,6 +228,8 @@ void MediaKeySystemAccessInitializer::RequestSucceeded(
void MediaKeySystemAccessInitializer::RequestNotSupported( void MediaKeySystemAccessInitializer::RequestNotSupported(
const WebString& error_message) { const WebString& error_message) {
DVLOG(3) << __func__ << " error: " << error_message.Ascii();
if (!IsExecutionContextValid()) if (!IsExecutionContextValid())
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment