OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "extensions/common/features/feature_provider.h" | 5 #include "extensions/common/features/feature_provider.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/basictypes.h" | |
10 #include "base/command_line.h" | 9 #include "base/command_line.h" |
11 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
12 #include "base/memory/linked_ptr.h" | 11 #include "base/memory/linked_ptr.h" |
13 #include "base/metrics/histogram_macros.h" | 12 #include "base/metrics/histogram_macros.h" |
14 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
15 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
16 #include "extensions/common/extensions_client.h" | 15 #include "extensions/common/extensions_client.h" |
17 #include "extensions/common/features/feature_util.h" | 16 #include "extensions/common/features/feature_util.h" |
18 #include "extensions/common/switches.h" | 17 #include "extensions/common/switches.h" |
19 | 18 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 const Feature* FeatureProvider::GetPermissionFeature(const std::string& name) { | 121 const Feature* FeatureProvider::GetPermissionFeature(const std::string& name) { |
123 return GetFeatureFromProviderByName("permission", name); | 122 return GetFeatureFromProviderByName("permission", name); |
124 } | 123 } |
125 | 124 |
126 // static | 125 // static |
127 const Feature* FeatureProvider::GetBehaviorFeature(const std::string& name) { | 126 const Feature* FeatureProvider::GetBehaviorFeature(const std::string& name) { |
128 return GetFeatureFromProviderByName("behavior", name); | 127 return GetFeatureFromProviderByName("behavior", name); |
129 } | 128 } |
130 | 129 |
131 } // namespace extensions | 130 } // namespace extensions |
OLD | NEW |