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

Unified Diff: chrome/common/extensions/extension.cc

Issue 9950046: Implement FeatureProvider for ExtensionAPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hate hate hate Created 8 years, 9 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_unittest.cc ('k') | chrome/common/extensions/feature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index f8262b331600ef46e5a79548b1b2da0fcee852cb..3869df1e86dbedb1f7549333e275d2ea803a8598 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -3314,7 +3314,11 @@ bool Extension::ParsePermissions(const char* key,
CHECK(feature.get());
extensions::Feature::Availability availability =
- feature->IsAvailable(this);
+ feature->IsAvailableToManifest(
+ id(),
+ GetType(),
+ extensions::Feature::ConvertLocation(location()),
+ manifest_version());
if (availability != extensions::Feature::IS_AVAILABLE) {
// We special case hosted apps because some old versions of Chrome did
// not return errors here and we ended up with extensions in the store
« no previous file with comments | « chrome/common/extensions/api/extension_api_unittest.cc ('k') | chrome/common/extensions/feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698