summaryrefslogtreecommitdiffstats
path: root/extensions/common/features/permission_feature.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/common/features/permission_feature.cc')
-rw-r--r--extensions/common/features/permission_feature.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/common/features/permission_feature.cc b/extensions/common/features/permission_feature.cc
index 1831cf9..7be136d 100644
--- a/extensions/common/features/permission_feature.cc
+++ b/extensions/common/features/permission_feature.cc
@@ -27,7 +27,8 @@ Feature::Availability PermissionFeature::IsAvailableToContext(
if (!availability.is_available())
return availability;
- if (extension && !PermissionsData::HasAPIPermission(extension, name()))
+ if (extension &&
+ !PermissionsData::ForExtension(extension)->HasAPIPermission(name()))
return CreateAvailability(NOT_PRESENT, extension->GetType());
return CreateAvailability(IS_AVAILABLE);