Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: components/html_viewer/html_document.cc

Issue 1137993004: Revert of Restrict use of hardware-secure codecs based on the RendererPreference. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setsecurity
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/html_document.cc
diff --git a/components/html_viewer/html_document.cc b/components/html_viewer/html_document.cc
index b9223904d3a2530e33e11c49bd1261b132547ed6..227dae3280360905fbce1ceccaabcbc185e17b14 100644
--- a/components/html_viewer/html_document.cc
+++ b/components/html_viewer/html_document.cc
@@ -109,12 +109,6 @@
return false;
}
-bool AreSecureCodecsSupported() {
- // Hardware-secure codecs are not currently supported by HTML Viewer on any
- // platform.
- return false;
-}
-
} // namespace
HTMLDocument::HTMLDocument(
@@ -334,8 +328,7 @@
blink::WebEncryptedMediaClient* HTMLDocument::encryptedMediaClient() {
if (!web_encrypted_media_client_) {
web_encrypted_media_client_.reset(new media::WebEncryptedMediaClientImpl(
- base::Bind(&AreSecureCodecsSupported), GetCdmFactory(),
- GetMediaPermission()));
+ GetCdmFactory(), GetMediaPermission()));
}
return web_encrypted_media_client_.get();
}
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698