forked from electron/electron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: [gyp] cdm key system support behind flag (electron#671)
- Loading branch information
1 parent
a664c70
commit 65e44d0
Showing
6 changed files
with
68 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
diff --git a/chrome/renderer/media/chrome_key_systems.cc b/chrome/renderer/media/chrome_key_systems.cc | ||
index f3033337199b..856bc8f0b143 100644 | ||
--- a/chrome/renderer/media/chrome_key_systems.cc | ||
+++ b/chrome/renderer/media/chrome_key_systems.cc | ||
@@ -14,7 +14,9 @@ | ||
#include "base/strings/string_split.h" | ||
#include "base/strings/utf_string_conversions.h" | ||
#include "build/build_config.h" | ||
+#if 0 | ||
#include "chrome/renderer/chrome_render_thread_observer.h" | ||
+#endif | ||
#include "components/cdm/renderer/external_clear_key_key_system_properties.h" | ||
#include "components/cdm/renderer/widevine_key_system_properties.h" | ||
#include "content/public/renderer/render_thread.h" | ||
@@ -140,12 +142,14 @@ static void AddExternalClearKey( | ||
#if defined(WIDEVINE_CDM_AVAILABLE) | ||
// Returns persistent-license session support. | ||
EmeSessionTypeSupport GetPersistentLicenseSupport(bool supported_by_the_cdm) { | ||
+#if 0 | ||
// Do not support persistent-license if the process cannot persist data. | ||
// TODO(crbug.com/457487): Have a better plan on this. See bug for details. | ||
if (ChromeRenderThreadObserver::is_incognito_process()) { | ||
DVLOG(2) << __func__ << ": Not supported in incognito process."; | ||
return EmeSessionTypeSupport::NOT_SUPPORTED; | ||
} | ||
+#endif | ||
|
||
if (!supported_by_the_cdm) { | ||
DVLOG(2) << __func__ << ": Not supported by the CDM."; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters