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

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

Issue 12093036: Move Extension Location and Type enums to Manifest, and move InstallWarning to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months 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
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 "chrome/common/extensions/manifest_handler.h" 5 #include "chrome/common/extensions/manifest_handler.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/linked_ptr.h" 10 #include "base/memory/linked_ptr.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 LAZY_INSTANCE_INITIALIZER; 59 LAZY_INSTANCE_INITIALIZER;
60 60
61 } // namespace 61 } // namespace
62 62
63 ManifestHandler::ManifestHandler() { 63 ManifestHandler::ManifestHandler() {
64 } 64 }
65 65
66 ManifestHandler::~ManifestHandler() { 66 ManifestHandler::~ManifestHandler() {
67 } 67 }
68 68
69 bool ManifestHandler::AlwaysParseForType(Extension::Type type) { 69 bool ManifestHandler::AlwaysParseForType(Manifest::Type type) {
70 return false; 70 return false;
71 } 71 }
72 72
73 // static 73 // static
74 void ManifestHandler::Register(const std::string& key, 74 void ManifestHandler::Register(const std::string& key,
75 ManifestHandler* handler) { 75 ManifestHandler* handler) {
76 g_registry.Get().RegisterManifestHandler(key, handler); 76 g_registry.Get().RegisterManifestHandler(key, handler);
77 } 77 }
78 78
79 // static 79 // static
80 bool ManifestHandler::ParseExtension(Extension* extension, string16* error) { 80 bool ManifestHandler::ParseExtension(Extension* extension, string16* error) {
81 return g_registry.Get().ParseExtension(extension, error); 81 return g_registry.Get().ParseExtension(extension, error);
82 } 82 }
83 83
84 } // namespace extensions 84 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/manifest_handler.h ('k') | chrome/common/extensions/manifest_tests/extension_manifest_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698