blob: d5357f18d9ebb112515e98afccda280f62143bb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/common/features/feature_provider.h"
#include "base/basictypes.h"
#include "extensions/common/extensions_client.h"
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
|