1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "extensions/common/features/feature_provider.h"
7 #include "base/basictypes.h"
8 #include "extensions/common/extensions_client.h"
10 namespace extensions
{
13 FeatureProvider
* FeatureProvider::GetByName(const std::string
& name
) {
14 return ExtensionsClient::Get()->GetFeatureProviderByName(name
);
18 FeatureProvider
* FeatureProvider::GetAPIFeatures() {
19 return GetByName("api");
23 FeatureProvider
* FeatureProvider::GetManifestFeatures() {
24 return GetByName("manifest");
28 FeatureProvider
* FeatureProvider::GetPermissionFeatures() {
29 return GetByName("permission");
32 } // namespace extensions