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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/content_scripts_parser.cc
diff --git a/chrome/browser/extensions/content_scripts_parser.cc b/chrome/browser/extensions/content_scripts_parser.cc
new file mode 100644
index 0000000000000000000000000000000000000000..422919536440bfbdf760688b4cf2c137fb889245
--- /dev/null
+++ b/chrome/browser/extensions/content_scripts_parser.cc
@@ -0,0 +1,28 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/extensions/content_scripts_parser.h"
+
+#include "base/lazy_instance.h"
+#include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h"
+
+namespace extensions {
+
+static base::LazyInstance<ProfileKeyedAPIFactory<ContentScriptsParser> >
+ g_factory = LAZY_INSTANCE_INITIALIZER;
+
+// static
+ProfileKeyedAPIFactory<ContentScriptsParser>*
+ContentScriptsParser::GetFactoryInstance() {
+ return &g_factory.Get();
+}
+
+ContentScriptsParser::ContentScriptsParser(Profile* profile) {
+ (new ContentScriptsHandler)->Register();
+}
+
+ContentScriptsParser::~ContentScriptsParser() {
+}
+
+} // namespace extensions
« 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