From 0a880e77084ea62c663a3d67cd7378fbc5dbae7e Mon Sep 17 00:00:00 2001 From: Brian Clifton Date: Wed, 26 Sep 2018 23:37:45 -0700 Subject: [PATCH] Add check for new `brave_enable_cdm_host_verification` config option If set to `true` via .npmrc, Widevine Host Verification will be enabled for the build This functionality also requires https://github.com/brave/brave-core/pull/515 Fixes https://github.com/brave/brave-browser/issues/1310 --- lib/config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/config.js b/lib/config.js index 04a550bab323..498fbbec5194 100644 --- a/lib/config.js +++ b/lib/config.js @@ -47,6 +47,7 @@ const Config = function () { this.channel = '' this.sccache = getNPMConfig(['sccache']) this.braveReferralsApiKey = getNPMConfig(['brave_referrals_api_key']) || '' + this.braveEnableCdmHostVerification = JSON.parse(getNPMConfig(['brave_enable_cdm_host_verification']) || false) } Config.prototype.buildArgs = function () { @@ -82,6 +83,7 @@ Config.prototype.buildArgs = function () { chrome_version_string: this.chromeVersion, safebrowsing_api_endpoint: this.safeBrowsingApiEndpoint, brave_referrals_api_key: this.braveReferralsApiKey, + brave_enable_cdm_host_verification: this.braveEnableCdmHostVerification } if (process.platform === 'darwin') {