OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/manifest_handler.h" | 5 #include "extensions/common/manifest_handler.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <map> | 9 #include <map> |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
11 #include "extensions/common/extension.h" | 13 #include "extensions/common/extension.h" |
12 #include "extensions/common/permissions/manifest_permission.h" | 14 #include "extensions/common/permissions/manifest_permission.h" |
13 #include "extensions/common/permissions/manifest_permission_set.h" | 15 #include "extensions/common/permissions/manifest_permission_set.h" |
14 | 16 |
15 namespace extensions { | 17 namespace extensions { |
16 | 18 |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 unsorted_handlers.swap(next_unsorted_handlers); | 243 unsorted_handlers.swap(next_unsorted_handlers); |
242 } | 244 } |
243 | 245 |
244 // If there are any leftover unsorted handlers, they must have had | 246 // If there are any leftover unsorted handlers, they must have had |
245 // circular dependencies. | 247 // circular dependencies. |
246 CHECK_EQ(unsorted_handlers.size(), std::set<ManifestHandler*>::size_type(0)) | 248 CHECK_EQ(unsorted_handlers.size(), std::set<ManifestHandler*>::size_type(0)) |
247 << "Extension manifest handlers have circular dependencies!"; | 249 << "Extension manifest handlers have circular dependencies!"; |
248 } | 250 } |
249 | 251 |
250 } // namespace extensions | 252 } // namespace extensions |
OLD | NEW |