OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/base_feature_provider.h" | 5 #include "extensions/common/features/base_feature_provider.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <stack> | 9 #include <stack> |
8 #include <utility> | 10 #include <utility> |
9 | 11 |
10 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
11 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
12 #include "extensions/common/extensions_client.h" | 14 #include "extensions/common/extensions_client.h" |
13 #include "extensions/common/features/complex_feature.h" | 15 #include "extensions/common/features/complex_feature.h" |
14 #include "extensions/common/features/simple_feature.h" | 16 #include "extensions/common/features/simple_feature.h" |
15 | 17 |
16 namespace extensions { | 18 namespace extensions { |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 std::vector<Feature*> result; | 197 std::vector<Feature*> result; |
196 result.reserve(std::distance(first_child, after_children)); | 198 result.reserve(std::distance(first_child, after_children)); |
197 for (FeatureMap::const_iterator it = first_child; it != after_children; | 199 for (FeatureMap::const_iterator it = first_child; it != after_children; |
198 ++it) { | 200 ++it) { |
199 result.push_back(it->second.get()); | 201 result.push_back(it->second.get()); |
200 } | 202 } |
201 return result; | 203 return result; |
202 } | 204 } |
203 | 205 |
204 } // namespace extensions | 206 } // namespace extensions |
OLD | NEW |