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

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

Issue 11724002: Move ContentScripts out of Extension (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_unref_browser_action
Patch Set: Latest master for CQ Created 7 years, 9 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) 2013 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/content_scripts_parser.h"
6
7 #include "base/lazy_instance.h"
8 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h"
9
10 namespace extensions {
11
12 static base::LazyInstance<ProfileKeyedAPIFactory<ContentScriptsParser> >
13 g_factory = LAZY_INSTANCE_INITIALIZER;
14
15 // static
16 ProfileKeyedAPIFactory<ContentScriptsParser>*
17 ContentScriptsParser::GetFactoryInstance() {
18 return &g_factory.Get();
19 }
20
21 ContentScriptsParser::ContentScriptsParser(Profile* profile) {
22 (new ContentScriptsHandler)->Register();
23 }
24
25 ContentScriptsParser::~ContentScriptsParser() {
26 }
27
28 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/content_scripts_parser.h ('k') | chrome/browser/extensions/convert_user_script_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698