DescriptionMove kill switch and secure origin checking logic
Currently the permission kill switch check and secure origin checks happen in
PermissionContextBase::GetPermissionStatus. This function is virtual which
means that it's easy to accidentally override this logic unintentionally,
and hard to insert extra permission checks which take precedence over the user
setting but not over the kill switch.
This CL makes GetPermissionStatus non-virtual such that the kill switch and
origin checking logic is always called and adds a new virtual
GetPermissionStatusInternal function which subclasses can override as needed.
TBR=tommycli@chromium.org
BUG=674389
Committed: https://crrev.com/0f93a5833613dd2786cc45f9c75e2c8723f855f5
Cr-Commit-Position: refs/heads/master@{#439700}
Patch Set 1 #Patch Set 2 : Move kill switch and secure origin checking logic #Patch Set 3 : Move kill switch and secure origin checking logic #Messages
Total messages: 20 (11 generated)
|