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 "chrome/common/extensions/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 "chrome/common/extensions/extension.h" |
12 | 12 |
13 namespace extensions { | 13 namespace extensions { |
14 | 14 |
15 namespace { | 15 namespace { |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 unsorted_handlers.swap(next_unsorted_handlers); | 196 unsorted_handlers.swap(next_unsorted_handlers); |
197 } | 197 } |
198 | 198 |
199 // If there are any leftover unsorted handlers, they must have had | 199 // If there are any leftover unsorted handlers, they must have had |
200 // circular dependencies. | 200 // circular dependencies. |
201 CHECK(unsorted_handlers.size() == 0) << "Extension manifest handlers have " | 201 CHECK(unsorted_handlers.size() == 0) << "Extension manifest handlers have " |
202 << "circular dependencies!"; | 202 << "circular dependencies!"; |
203 } | 203 } |
204 | 204 |
205 } // namespace extensions | 205 } // namespace extensions |
OLD | NEW |