summaryrefslogtreecommitdiffstats
path: root/extensions/common/features/feature_provider.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/common/features/feature_provider.cc')
-rw-r--r--extensions/common/features/feature_provider.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/extensions/common/features/feature_provider.cc b/extensions/common/features/feature_provider.cc
index 8e15d4b..d5357f1 100644
--- a/extensions/common/features/feature_provider.cc
+++ b/extensions/common/features/feature_provider.cc
@@ -9,8 +9,24 @@
namespace extensions {
+// static
FeatureProvider* FeatureProvider::GetByName(const std::string& name) {
return ExtensionsClient::Get()->GetFeatureProviderByName(name);
}
+// static
+FeatureProvider* FeatureProvider::GetAPIFeatures() {
+ return GetByName("api");
+}
+
+// static
+FeatureProvider* FeatureProvider::GetManifestFeatures() {
+ return GetByName("manifest");
+}
+
+// static
+FeatureProvider* FeatureProvider::GetPermissionFeatures() {
+ return GetByName("permission");
+}
+
} // namespace extensions