36 lines
1.5 KiB
Diff
36 lines
1.5 KiB
Diff
diff --git chrome/common/chrome_content_client.cc chrome/common/chrome_content_client.cc
|
|
index d15599593511..0f37d5933391 100644
|
|
--- chrome/common/chrome_content_client.cc
|
|
+++ chrome/common/chrome_content_client.cc
|
|
@@ -92,7 +92,8 @@
|
|
|
|
#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)
|
|
#define WIDEVINE_CDM_AVAILABLE_NOT_COMPONENT
|
|
#endif
|
|
#endif // BUILDFLAG(ENABLE_LIBRARY_CDMS)
|
|
diff --git third_party/widevine/cdm/BUILD.gn third_party/widevine/cdm/BUILD.gn
|
|
index 55b471ea93f8..6dac0552d66f 100644
|
|
--- 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
|