DescriptionRevert of Add threadsafe version of PermissionManager::GetPermissionStatus (patchset #5 id:80001 of https://codereview.chromium.org/2439673004/ )
Reason for revert:
Going to address a number of issues that Raymes pointed out including:
1) It's unclear the purpose the overloaded GetPermissionStatus function (see https://google.github.io/styleguide/cppguide.html#Function_Overloading). It could be good to name it something that reflects its usage from a background thread.
2) In PermissionManager, it's unclear that it is threadsafe while the rest of the class isn't - we should add a comment.
3) It's unclear why HostContentSettingsMap needs to be passed in - it's already available in the PermissionContextBase.
4) I feel like it would be better to leave the default implementation empty in the PermissionContextBase and have NOTREACHED. Then if someone really wants to support querying a permission safely from a background thread, they have to think about it.
Original issue's description:
> Add threadsafe version of PermissionManager::GetPermissionStatus
>
> Add a version of GetPermissionStatus that takes a host_content_settings_map.
> This method is guaranteed to be threadsafe.
>
> BUG=658020
>
> R=jochen, mlamouri
>
> Committed: https://crrev.com/d6b19d48cf91f89c1ec414485b781f2ef2434521
> Cr-Commit-Position: refs/heads/master@{#427078}
TBR=mlamouri@chromium.org,jochen@chromium.org
# Skipping CQ checks because original CL landed less than 1 days ago.
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=658020
Committed: https://crrev.com/c7d2c5a9df56e9a3a2cacc23fcb07ae93870d7b6
Cr-Commit-Position: refs/heads/master@{#427189}
Patch Set 1 #
Messages
Total messages: 16 (7 generated)
|