Descriptionmedia: Check kDisableInfobarForProtectedMediaIdentifier in ProtectedMediaIdentifierPermissionContext.
Previously this flag was checked in BrowserCdmManager. When this flag is set,
we would NOT check any preference and content setting related to protected
media identifier. Permission was granted blindly by default.
This CL moves the check to ProtectedMediaIdentifierPermissionContext. Now the
impact of this flag is more restrictive: only when the permission status is
"ASK" will we replace it with "ALLOW". This applies to both permission request
and permission check. If the permission is "BLOCKED" for any reason (e.g.
invalid origin, disabled by master switch, blocked in content setting), the
permission request/check will be blocked.
BUG=456219
TEST=Manually tested with and without the switch.
Committed: https://crrev.com/5f80e74c8d9b52f246c4a276c25e6af6a35072ba
Cr-Commit-Position: refs/heads/master@{#320997}
Patch Set 1 #
Total comments: 4
Patch Set 2 : comments addressed #
Total comments: 2
Patch Set 3 : rebase only #
Messages
Total messages: 13 (3 generated)
|