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

Unified Diff: chromecast/media/cdm/cast_cdm_factory.cc

Issue 2478453002: [Chromecast] Use CdmConfig to create CDM (Closed)
Patch Set: Created 4 years, 1 month 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
Index: chromecast/media/cdm/cast_cdm_factory.cc
diff --git a/chromecast/media/cdm/cast_cdm_factory.cc b/chromecast/media/cdm/cast_cdm_factory.cc
index 750863245d11077793ccd15902017d2861cea0fc..a0b1b5f86e544955fff29237f3fed924e0a3b4bf 100644
--- a/chromecast/media/cdm/cast_cdm_factory.cc
+++ b/chromecast/media/cdm/cast_cdm_factory.cc
@@ -43,16 +43,14 @@ void CastCdmFactory::Create(
::media::CdmCreatedCB bound_cdm_created_cb =
::media::BindToCurrentLoop(cdm_created_cb);
- DCHECK(!cdm_config.use_hw_secure_codecs)
- << "Chromecast does not use |use_hw_secure_codecs|";
-
CastKeySystem cast_key_system(GetKeySystemByName(key_system));
scoped_refptr<chromecast::media::CastCdm> cast_cdm;
if (cast_key_system == chromecast::media::KEY_SYSTEM_CLEAR_KEY) {
// TODO(gunsch): handle ClearKey decryption. See crbug.com/441957
} else {
- cast_cdm = CreatePlatformBrowserCdm(cast_key_system, security_origin);
+ cast_cdm =
+ CreatePlatformBrowserCdm(cast_key_system, security_origin, cdm_config);
}
if (!cast_cdm) {
@@ -80,7 +78,8 @@ void CastCdmFactory::Create(
scoped_refptr<CastCdm> CastCdmFactory::CreatePlatformBrowserCdm(
const CastKeySystem& cast_key_system,
- const GURL& security_origin) {
+ const GURL& security_origin,
+ const ::media::CdmConfig& cdm_config) {
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698