diff options
Diffstat (limited to 'chrome/common/extensions/permissions/permissions_data.cc')
-rw-r--r-- | chrome/common/extensions/permissions/permissions_data.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/chrome/common/extensions/permissions/permissions_data.cc b/chrome/common/extensions/permissions/permissions_data.cc index 89ba420..d9e56ef 100644 --- a/chrome/common/extensions/permissions/permissions_data.cc +++ b/chrome/common/extensions/permissions/permissions_data.cc @@ -38,21 +38,6 @@ namespace { PermissionsData::PolicyDelegate* g_policy_delegate = NULL; -bool ContainsManifestForbiddenPermission(const APIPermissionSet& apis, - string16* error) { - CHECK(error); - for (APIPermissionSet::const_iterator iter = apis.begin(); - iter != apis.end(); ++iter) { - if ((*iter)->ManifestEntryForbidden()) { - *error = ErrorUtils::FormatErrorMessageUTF16( - errors::kPermissionNotAllowedInManifest, - (*iter)->info()->name()); - return true; - } - } - return false; -} - // Custom checks for the experimental permission that can't be expressed in // _permission_features.json. bool CanSpecifyExperimentalPermission(const Extension* extension) { @@ -617,13 +602,6 @@ bool PermissionsData::ParsePermissions(Extension* extension, string16* error) { return false; } - if (ContainsManifestForbiddenPermission( - initial_required_permissions_->api_permissions, error) || - ContainsManifestForbiddenPermission( - initial_optional_permissions_->api_permissions, error)) { - return false; - } - return true; } |