Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3008)

Unified Diff: chrome/common/extensions/features/permission_feature.cc

Issue 15961006: Regenerate Extensions API bindings when optional permissions change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try againto fix android Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/api/extension_api_stub.cc ('k') | chrome/renderer/extensions/dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/features/permission_feature.cc
diff --git a/chrome/common/extensions/features/permission_feature.cc b/chrome/common/extensions/features/permission_feature.cc
index 5fa2ba2ec8373f34b606155718979413f476148b..2b649b18340e9f5d5a2f33e42595ec64a3dd4e56 100644
--- a/chrome/common/extensions/features/permission_feature.cc
+++ b/chrome/common/extensions/features/permission_feature.cc
@@ -27,13 +27,8 @@ Feature::Availability PermissionFeature::IsAvailableToContext(
if (!availability.is_available())
return availability;
- // Optional permissions need to be checked so an API will not be set to
- // undefined forever, when it could just need optional permissions.
- if (extension && !extension->HasAPIPermission(name()) &&
- !PermissionsData::GetOptionalPermissions(extension)->
- HasAnyAccessToAPI(name())) {
+ if (extension && !extension->HasAPIPermission(name()))
return CreateAvailability(NOT_PRESENT, extension->GetType());
- }
return CreateAvailability(IS_AVAILABLE);
}
« no previous file with comments | « chrome/common/extensions/api/extension_api_stub.cc ('k') | chrome/renderer/extensions/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698