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

Side by Side Diff: chrome/browser/extensions/manifest_url_parser.cc

Issue 11624036: Move the parsing of homepage_url" and "devtools_page" out of Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: patch-rebased- 2 Created 7 years, 11 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
OLDNEW
(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/extension_manifest_constants.h"
10 #include "chrome/common/extensions/manifest_handler.h"
11 #include "chrome/common/extensions/manifest_url_handler.h"
12
13 namespace extensions {
14
15 ManifestURLParser::ManifestURLParser(Profile* profile) {
16 ManifestHandler::Register(extension_manifest_keys::kDevToolsPage,
17 new DevToolsPageHandler);
18 ManifestHandler::Register(extension_manifest_keys::kHomepageURL,
19 new HomepageURLHandler);
20 }
21
22 ManifestURLParser::~ManifestURLParser() {
23 }
24
25 static base::LazyInstance<ProfileKeyedAPIFactory<ManifestURLParser> >
26 g_factory = LAZY_INSTANCE_INITIALIZER;
27
28 // static
29 ProfileKeyedAPIFactory<ManifestURLParser>*
30 ManifestURLParser::GetFactoryInstance() {
31 return &g_factory.Get();
32 }
33
34 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/manifest_url_parser.h ('k') | chrome/browser/profiles/profile_dependency_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698