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 <stack> | 7 #include <stack> |
| 8 #include <utility> |
8 | 9 |
9 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
10 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
11 #include "extensions/common/extensions_client.h" | 12 #include "extensions/common/extensions_client.h" |
12 #include "extensions/common/features/complex_feature.h" | 13 #include "extensions/common/features/complex_feature.h" |
13 #include "extensions/common/features/simple_feature.h" | 14 #include "extensions/common/features/simple_feature.h" |
14 | 15 |
15 namespace extensions { | 16 namespace extensions { |
16 | 17 |
17 namespace { | 18 namespace { |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 | 165 |
165 std::vector<Feature*> result; | 166 std::vector<Feature*> result; |
166 result.reserve(std::distance(first_child, after_children)); | 167 result.reserve(std::distance(first_child, after_children)); |
167 for (FeatureMap::const_iterator it = first_child; it != after_children; | 168 for (FeatureMap::const_iterator it = first_child; it != after_children; |
168 ++it) { | 169 ++it) { |
169 result.push_back(it->second.get()); | 170 result.push_back(it->second.get()); |
170 } | 171 } |
171 return result; | 172 return result; |
172 } | 173 } |
173 | 174 |
174 } // namespace extensions | 175 } // namespace extensions |
OLD | NEW |