commit | 99b1e5dc7e2baefede3785fec1ec4b8159cfcd82 | [log] [tgz] |
---|---|---|
author | Devlin Cronin <rdevlin.cronin@chromium.org> | Sat May 12 01:20:14 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Sat May 12 01:20:14 2018 |
tree | a83bb92adebbdd65ac9099277bfa17a4e7b5b8d6 | |
parent | 694fc8b87c14ca162c353500625090bd6069ee0f [diff] |
[Extensions] Factor Extension out of PermissionsData::PolicyDelegate Refactor PermissionsData::PolicyDelegate::CanExecuteScriptOnPage to no longer rely on being passed an extension. Instead, rename it to IsRestrictedUrl(), and call it from the method of the same name in PermissionsData. PermissionsData::IsRestrictedUrl() already checks if the extension can execute script everywhere, so the check is no longer necessary in the policy delegate. Additionally, this is ensures that places checking if an url is restricted also check with the delegate. Bug: 842270 Change-Id: Ica4c086d1315f9512cc908542841bf8dee2bedee Reviewed-on: https://chromium-review.googlesource.com/1055930 Reviewed-by: Karan Bhatia <karandeepb@chromium.org> Commit-Queue: Devlin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/master@{#558083}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .