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

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

Issue 11568034: Changing inheritance to composition. (Closed) 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
« no previous file with comments | « chrome/common/extensions/features/manifest_feature.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5d7c5a44f09f60978dea4321ca2882c7acba659a..02175876f1b96de1305fc4a50ba2e560b4c59d7f 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(scoped_ptr<Feature> feature)
+ : feature_(feature.Pass()) {
}
ManifestFeature::~ManifestFeature() {
@@ -18,9 +19,9 @@ Feature::Availability ManifestFeature::IsAvailableToContext(
const Extension* extension,
Feature::Context context,
Feature::Platform platform) const {
- Availability availability = Feature::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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698