Ignore non-active fullscreen windows for shelf state.
[chromium-blink-merge.git] / extensions / common / features / feature_provider.cc
blobd5357f18d9ebb112515e98afccda280f62143bb2
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 {
12 // static
13 FeatureProvider* FeatureProvider::GetByName(const std::string& name) {
14 return ExtensionsClient::Get()->GetFeatureProviderByName(name);
17 // static
18 FeatureProvider* FeatureProvider::GetAPIFeatures() {
19 return GetByName("api");
22 // static
23 FeatureProvider* FeatureProvider::GetManifestFeatures() {
24 return GetByName("manifest");
27 // static
28 FeatureProvider* FeatureProvider::GetPermissionFeatures() {
29 return GetByName("permission");
32 } // namespace extensions