summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/permissions/permissions_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/api/permissions/permissions_api.cc')
-rw-r--r--chrome/browser/extensions/api/permissions/permissions_api.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/chrome/browser/extensions/api/permissions/permissions_api.cc b/chrome/browser/extensions/api/permissions/permissions_api.cc
index 0e888eb..cf40ae1 100644
--- a/chrome/browser/extensions/api/permissions/permissions_api.cc
+++ b/chrome/browser/extensions/api/permissions/permissions_api.cc
@@ -176,15 +176,9 @@ bool PermissionsRequestFunction::RunImpl() {
}
}
- // Filter out permissions that do not need to be listed in the optional
- // section of the manifest.
- scoped_refptr<PermissionSet> manifest_required_requested_permissions =
- PermissionSet::ExcludeNotInManifestPermissions(
- requested_permissions_.get());
-
// The requested permissions must be defined as optional in the manifest.
if (!PermissionsData::GetOptionalPermissions(GetExtension())
- ->Contains(*manifest_required_requested_permissions.get())) {
+ ->Contains(*requested_permissions_.get())) {
error_ = kNotInOptionalPermissionsError;
return false;
}