Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Extensions Refactor] Move SiteAccess struct to PermissionsManager
ScriptingPermissionsModifier::SiteAccess struct and GetSiteAccess() are only used by SitePermissionsHelper. Since we want to consolidate permissions logic in one place, and allow potential use of permissions outside Chrome, moved SiteAccess and related methods to PermissionsManager. This will also allow easier checks between user permissions and extension permissions. This involved: a) Moving GetSiteAccess and SiteAccess struct to PermissionsManager b) Implementing GetRuntimePermissionsFromPrefs() and HasWithheldHostPermissions in PermissionsManager. This methods are called on various other places. Thus, leave placeholders in ScriptingPermissionsModifier and finish the migration in a follow up CL Bug: 1289441 Change-Id: Ie97e9843a3529b842462d9fdef48dad14927d33f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3466639 Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org> Commit-Queue: Emilia Paz <emiliapaz@chromium.org> Cr-Commit-Position: refs/heads/main@{#983419}
- Loading branch information
1 parent
8de8632
commit 41345b3
Showing
10 changed files
with
440 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.