Skip to content

Commit

Permalink
Enable Widevine Host Verification for our build
Browse files Browse the repository at this point in the history
Will help enable brave/brave-browser#944
  • Loading branch information
bsclifton committed Sep 26, 2018
1 parent 83fc646 commit 9124d18
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/media-media_options.gni.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/media/media_options.gni b/media/media_options.gni
index d8e20f62c19d34d036760883a02d3350aa696f1b..0d920ed8e57e1b4bbd928a937cec88b40b1fb18e 100644
--- a/media/media_options.gni
+++ b/media/media_options.gni
@@ -146,7 +146,7 @@ declare_args() {
# Enables host verification for CDMs.
# Windows and Mac.
enable_cdm_host_verification =
- enable_library_cdms && (is_mac || is_win) && is_chrome_branded
+ enable_library_cdms && (is_mac || is_win)

# Enable Storage ID which is used by CDMs. This is only available with chrome
# branding, but may be overridden by other embedders.
13 changes: 13 additions & 0 deletions patches/third_party-widevine-cdm-widevine.gni.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/third_party/widevine/cdm/widevine.gni b/third_party/widevine/cdm/widevine.gni
index 82a93622585a424f56c3567050f9ba4822de6c1e..9c89d9a0c0a8b2df4e082cfd1ef9ace6ed8fc929 100644
--- a/third_party/widevine/cdm/widevine.gni
+++ b/third_party/widevine/cdm/widevine.gni
@@ -11,7 +11,7 @@ declare_args() {
}

enable_widevine_cdm_host_verification =
- (is_chrome_branded || enable_widevine) && enable_cdm_host_verification
+ enable_widevine && enable_cdm_host_verification

# Only bundle Widevine CDM in Google Chrome builds.
should_bundle_widevine_cdm = is_chrome_branded && enable_library_cdms

0 comments on commit 9124d18

Please sign in to comment.