| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/extensions/manifest_url_parser.h" |
| 6 |
| 7 #include "base/lazy_instance.h" |
| 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/common/extensions/devtools_page_handler.h" |
| 10 #include "chrome/common/extensions/extension_manifest_constants.h" |
| 11 #include "chrome/common/extensions/homepage_url_handler.h" |
| 12 #include "chrome/common/extensions/manifest_handler.h" |
| 13 |
| 14 namespace extensions { |
| 15 |
| 16 ManifestURLParser::ManifestURLParser(Profile* profile) { |
| 17 ManifestHandler::Register(extension_manifest_keys::kDevToolsPage, |
| 18 new DevToolsPageHandler); |
| 19 ManifestHandler::Register(extension_manifest_keys::kHomepageURL, |
| 20 new HomepageURLHandler); |
| 21 } |
| 22 |
| 23 ManifestURLParser::~ManifestURLParser() { |
| 24 } |
| 25 |
| 26 static base::LazyInstance<ProfileKeyedAPIFactory<ManifestURLParser> > |
| 27 g_factory = LAZY_INSTANCE_INITIALIZER; |
| 28 |
| 29 template <> |
| 30 ProfileKeyedAPIFactory<ManifestURLParser>* |
| 31 ProfileKeyedAPIFactory<ManifestURLParser>::GetInstance() { |
| 32 return &g_factory.Get(); |
| 33 } |
| 34 |
| 35 } // namespace extensions |
| OLD | NEW |