Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: extensions/common/manifest_handler.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « extensions/common/extension_builder.cc ('k') | extensions/common/manifest_handler_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « extensions/common/extension_builder.cc ('k') | extensions/common/manifest_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698