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 <map> | 7 #include <map> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "chrome/common/extensions/extension.h" | 11 #include "extensions/common/extension.h" |
12 #include "extensions/common/permissions/manifest_permission.h" | 12 #include "extensions/common/permissions/manifest_permission.h" |
13 #include "extensions/common/permissions/manifest_permission_set.h" | 13 #include "extensions/common/permissions/manifest_permission_set.h" |
14 | 14 |
15 namespace extensions { | 15 namespace extensions { |
16 | 16 |
17 namespace { | 17 namespace { |
18 | 18 |
19 static base::LazyInstance<ManifestHandlerRegistry> g_registry = | 19 static base::LazyInstance<ManifestHandlerRegistry> g_registry = |
20 LAZY_INSTANCE_INITIALIZER; | 20 LAZY_INSTANCE_INITIALIZER; |
21 static ManifestHandlerRegistry* g_registry_override = NULL; | 21 static ManifestHandlerRegistry* g_registry_override = NULL; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 unsorted_handlers.swap(next_unsorted_handlers); | 240 unsorted_handlers.swap(next_unsorted_handlers); |
241 } | 241 } |
242 | 242 |
243 // If there are any leftover unsorted handlers, they must have had | 243 // If there are any leftover unsorted handlers, they must have had |
244 // circular dependencies. | 244 // circular dependencies. |
245 CHECK(unsorted_handlers.size() == 0) << "Extension manifest handlers have " | 245 CHECK(unsorted_handlers.size() == 0) << "Extension manifest handlers have " |
246 << "circular dependencies!"; | 246 << "circular dependencies!"; |
247 } | 247 } |
248 | 248 |
249 } // namespace extensions | 249 } // namespace extensions |
OLD | NEW |