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

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

Issue 11585003: Make Manifest/Permission Features Compose with Feature Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/features/manifest_feature.cc
diff --git a/chrome/common/extensions/features/manifest_feature.cc b/chrome/common/extensions/features/manifest_feature.cc
index 28406d8fecacb2f006413a9d2315e6ea3c61ad7f..d68acb8a6a782c2b17bd20685446b9b0b3b8630c 100644
--- a/chrome/common/extensions/features/manifest_feature.cc
+++ b/chrome/common/extensions/features/manifest_feature.cc
@@ -8,7 +8,8 @@
namespace extensions {
-ManifestFeature::ManifestFeature() {
+ManifestFeature::ManifestFeature(Feature* feature)
+ : feature_(feature) {
}
ManifestFeature::~ManifestFeature() {
@@ -18,9 +19,9 @@ Feature::Availability ManifestFeature::IsAvailableToContext(
const Extension* extension,
Feature::Context context,
Feature::Platform platform) const {
- Availability availability = SimpleFeature::IsAvailableToContext(extension,
- context,
- platform);
+ Availability availability = feature_->IsAvailableToContext(extension,
+ context,
+ platform);
if (!availability.is_available())
return availability;
« no previous file with comments | « chrome/common/extensions/features/manifest_feature.h ('k') | chrome/common/extensions/features/permission_feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698