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

Unified Diff: media/cdm/ppapi/ppapi_cdm_adapter.cc

Issue 2280433002: Remove CDM_7 support (Closed)
Patch Set: Created 4 years, 4 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 | « media/cdm/ppapi/ppapi_cdm_adapter.h ('k') | media/cdm/supported_cdm_versions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/ppapi/ppapi_cdm_adapter.cc
diff --git a/media/cdm/ppapi/ppapi_cdm_adapter.cc b/media/cdm/ppapi/ppapi_cdm_adapter.cc
index 42a5c5a4b23a6c2bcf6e53bfdcc47d5efa64f877..a8cd90e103086f8bed9b8e4d663d473bc938701b 100644
--- a/media/cdm/ppapi/ppapi_cdm_adapter.cc
+++ b/media/cdm/ppapi/ppapi_cdm_adapter.cc
@@ -1268,9 +1268,8 @@ void* GetCdmHost(int host_interface_version, void* user_data) {
// Current version is supported.
IsSupportedCdmHostVersion(cdm::Host_8::kVersion) &&
// Include all previous supported versions (if any) here.
- IsSupportedCdmHostVersion(cdm::Host_7::kVersion) &&
// One older than the oldest supported version is not supported.
- !IsSupportedCdmHostVersion(cdm::Host_7::kVersion - 1));
+ !IsSupportedCdmHostVersion(cdm::Host_8::kVersion - 1));
PP_DCHECK(IsSupportedCdmHostVersion(host_interface_version));
PpapiCdmAdapter* cdm_adapter = static_cast<PpapiCdmAdapter*>(user_data);
@@ -1278,8 +1277,6 @@ void* GetCdmHost(int host_interface_version, void* user_data) {
switch (host_interface_version) {
case cdm::Host_8::kVersion:
return static_cast<cdm::Host_8*>(cdm_adapter);
- case cdm::Host_7::kVersion:
- return static_cast<cdm::Host_7*>(cdm_adapter);
default:
PP_NOTREACHED();
return NULL;
« no previous file with comments | « media/cdm/ppapi/ppapi_cdm_adapter.h ('k') | media/cdm/supported_cdm_versions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698