2016-07-13 21:35:07 -04:00
|
|
|
diff --git chrome/common/chrome_content_client.cc chrome/common/chrome_content_client.cc
|
2018-09-04 11:43:21 +02:00
|
|
|
index 47eea6d5c75b..40de62691f31 100644
|
2016-07-13 21:35:07 -04:00
|
|
|
--- chrome/common/chrome_content_client.cc
|
|
|
|
+++ chrome/common/chrome_content_client.cc
|
2018-09-04 11:43:21 +02:00
|
|
|
@@ -97,7 +97,8 @@
|
2016-07-13 21:35:07 -04:00
|
|
|
|
2017-10-20 13:45:20 -04:00
|
|
|
#if BUILDFLAG(ENABLE_LIBRARY_CDMS)
|
|
|
|
#include "media/cdm/cdm_paths.h" // nogncheck
|
|
|
|
-#if defined(WIDEVINE_CDM_AVAILABLE) && !defined(WIDEVINE_CDM_IS_COMPONENT)
|
|
|
|
+#if defined(WIDEVINE_CDM_AVAILABLE) && !defined(WIDEVINE_CDM_IS_COMPONENT) && \
|
|
|
|
+ defined(WIDEVINE_CDM_VERSION_STRING)
|
2016-07-13 21:35:07 -04:00
|
|
|
#define WIDEVINE_CDM_AVAILABLE_NOT_COMPONENT
|
|
|
|
#endif
|
2018-04-19 11:44:42 -04:00
|
|
|
#endif // BUILDFLAG(ENABLE_LIBRARY_CDMS)
|
|
|
|
diff --git third_party/widevine/cdm/BUILD.gn third_party/widevine/cdm/BUILD.gn
|
2018-05-14 14:24:05 +03:00
|
|
|
index 55b471ea93f8..6dac0552d66f 100644
|
2018-04-19 11:44:42 -04:00
|
|
|
--- third_party/widevine/cdm/BUILD.gn
|
|
|
|
+++ third_party/widevine/cdm/BUILD.gn
|
|
|
|
@@ -4,6 +4,7 @@
|
|
|
|
|
|
|
|
import("//build/config/chrome_build.gni")
|
|
|
|
import("//build/config/features.gni")
|
|
|
|
+import("//cef/libcef/features/features.gni")
|
|
|
|
import("//media/cdm/library_cdm/cdm_paths.gni")
|
|
|
|
import("//media/media_options.gni")
|
|
|
|
import("//third_party/widevine/cdm/widevine.gni")
|
|
|
|
@@ -11,7 +12,7 @@ import("//third_party/widevine/cdm/widevine.gni")
|
|
|
|
# Internal Cast builds set enable_widevine=true to bring in Widevine support.
|
|
|
|
# TODO(xhwang): Support component updated CDM on other platforms and remove this
|
|
|
|
# assert.
|
|
|
|
-assert(!enable_widevine || is_win || is_mac || is_chromecast,
|
|
|
|
+assert(!enable_widevine || is_win || is_mac || is_chromecast || enable_cef,
|
|
|
|
"Component updated CDM only supported on Windows and Mac for now.")
|
|
|
|
|
|
|
|
widevine_arch = current_cpu
|