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

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

Issue 9969136: Reland r130462: Implement FeatureProvider for ExtensionAPI." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 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

Powered by Google App Engine
This is Rietveld 408576698