Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: chromecast/renderer/key_systems_cast.cc

Issue 1160983002: Allows support for persistent session types in BrowserCdm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase conflicts with https://codereview.chromium.org/1166453002 Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/media/cdm/browser_cdm_cast.cc ('k') | content/browser/media/cdm/browser_cdm_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/renderer/key_systems_cast.cc
diff --git a/chromecast/renderer/key_systems_cast.cc b/chromecast/renderer/key_systems_cast.cc
index bede01890c5edc01054a7e9b8441328070b2a192..bb27a6f11a2dea389e067a9678dff7783dc654d2 100644
--- a/chromecast/renderer/key_systems_cast.cc
+++ b/chromecast/renderer/key_systems_cast.cc
@@ -8,6 +8,7 @@
#include "base/command_line.h"
#include "base/logging.h"
+#include "build/build_config.h"
#include "chromecast/media/base/key_systems_common.h"
#include "components/cdm/renderer/widevine_key_systems.h"
#include "media/base/eme_constants.h"
@@ -31,8 +32,13 @@ void AddKeySystemWithCodecs(
::media::EME_CODEC_MP4_AAC | ::media::EME_CODEC_MP4_AVC1;
info.max_audio_robustness = ::media::EmeRobustness::EMPTY;
info.max_video_robustness = ::media::EmeRobustness::EMPTY;
+#if defined(OS_ANDROID)
info.persistent_license_support =
::media::EmeSessionTypeSupport::NOT_SUPPORTED;
+#else
+ info.persistent_license_support =
+ ::media::EmeSessionTypeSupport::SUPPORTED;
+#endif
info.persistent_release_message_support =
::media::EmeSessionTypeSupport::NOT_SUPPORTED;
info.persistent_state_support = ::media::EmeFeatureSupport::ALWAYS_ENABLED;
« no previous file with comments | « chromecast/media/cdm/browser_cdm_cast.cc ('k') | content/browser/media/cdm/browser_cdm_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698