Chromium Code Reviews
DescriptionAdd a source to the result of PermissionContextBase::GetPermissionStatus
There are several different cases where it is helpful to know the source
or reason for a particular permission status being returned. The
immediate reason for needing this is to properly measure metrics for the
PermissionDecisionAutoBlocker.
This CL provides the first steps towards exposing permission decision
information. PermissionContextBase::GetPermissionStatus now returns a
PermissionResult which includes both the content setting being returned,
as well as a PermissionStatusSource which describes the reason for the
setting.
Some initial reasons have been added, specifically:
-MULTIPLE_DISMISSALS - when a permission is blocked as a result of multiple
dismissals.
-SAFE_BROWSING_BLACKLIST - when a permission is blocked because the origin is
on the safe browsing blacklist.
These will be hooked up in a subsequent CL.
BUG=679877
TBR=peter@chromium.org,michaeln@chromium.org,sergeyu@chromium.org
Review-Url: https://codereview.chromium.org/2686463002
Cr-Commit-Position: refs/heads/master@{#450590}
Committed: https://chromium.googlesource.com/chromium/src/+/ab35971d1da1c791761f65f8dbd6df9512fd2c4d
Patch Set 1 #
Total comments: 6
Patch Set 2 : . #Patch Set 3 : Add a source to the result of PermissionContextBase::GetPermissionStatus #Patch Set 4 : Add a source to the result of PermissionContextBase::GetPermissionStatus #Patch Set 5 : Add a source to the result of PermissionContextBase::GetPermissionStatus #Patch Set 6 : Add a source to the result of PermissionContextBase::GetPermissionStatus #Messages
Total messages: 44 (26 generated)
|