Enable Widevine on all Linux archs (#21040)

On Arm64 Linux, Widevine is not available via component updates. But
distributions such as Raspberry Pi OS ship it. So users have ways of
obtaining the library. This commit makes the browser attempt to load
Widevine on non-x64 Linux architectures (and thus on Arm64). Users can
then install it manually to see DRM-protected content.
This commit is contained in:
Michael Herrmann
2024-01-12 11:35:42 -07:00
committed by GitHub
parent d14da0723e
commit 7ca7748bfc
4 changed files with 23 additions and 4 deletions
+3
View File
@@ -80,6 +80,9 @@ void RegisterWidevineLocalstatePrefs(PrefRegistrySimple* registry) {
}
bool IsWidevineEnabled() {
// N.B.: As of this writing, kWidevineEnabled is also queried in other places.
// If you want to change the logic for enabling Widevine, then you need to
// change those other places as well.
return g_browser_process->local_state()->GetBoolean(kWidevineEnabled);
}