Index: components/html_viewer/html_document.cc |
diff --git a/components/html_viewer/html_document.cc b/components/html_viewer/html_document.cc |
index 227dae3280360905fbce1ceccaabcbc185e17b14..b9223904d3a2530e33e11c49bd1261b132547ed6 100644 |
--- a/components/html_viewer/html_document.cc |
+++ b/components/html_viewer/html_document.cc |
@@ -109,6 +109,12 @@ bool CanNavigateLocally(blink::WebFrame* frame, |
return false; |
} |
+bool AreSecureCodecsSupported() { |
+ // Hardware-secure codecs are not currently supported by HTML Viewer on any |
+ // platform. |
+ return false; |
+} |
+ |
} // namespace |
HTMLDocument::HTMLDocument( |
@@ -328,7 +334,8 @@ void HTMLDocument::didNavigateWithinPage( |
blink::WebEncryptedMediaClient* HTMLDocument::encryptedMediaClient() { |
if (!web_encrypted_media_client_) { |
web_encrypted_media_client_.reset(new media::WebEncryptedMediaClientImpl( |
- GetCdmFactory(), GetMediaPermission())); |
+ base::Bind(&AreSecureCodecsSupported), GetCdmFactory(), |
+ GetMediaPermission())); |
} |
return web_encrypted_media_client_.get(); |
} |