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

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: 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
Index: chrome/common/extensions/extension.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index e239abef7403fe4e557243be9a54b8314255b1d3..957ec8aa9cd7d40e3af0e4abf39285103c7008a0 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -3191,7 +3191,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

Powered by Google App Engine
This is Rietveld 408576698