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

Unified Diff: chrome/browser/extensions/csp_parser.cc

Issue 14694010: Consolidate manifest handler registration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
« no previous file with comments | « chrome/browser/extensions/csp_parser.h ('k') | chrome/browser/extensions/extension_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/csp_parser.cc
diff --git a/chrome/browser/extensions/csp_parser.cc b/chrome/browser/extensions/csp_parser.cc
deleted file mode 100644
index b95d3d58d2fbebe84f15c2ab3c150e99c87d74e8..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/csp_parser.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// 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/csp_parser.h"
-
-#include "base/lazy_instance.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/common/extensions/csp_handler.h"
-#include "chrome/common/extensions/manifest_handlers/sandboxed_page_info.h"
-
-namespace extensions {
-
-CSPParser::CSPParser(Profile* profile) {
- (new CSPHandler(false))->Register(); // not platform app.
- (new CSPHandler(true))->Register(); // platform app.
- (new SandboxedPageHandler)->Register();
-}
-
-CSPParser::~CSPParser() {
-}
-
-static base::LazyInstance<ProfileKeyedAPIFactory<CSPParser> >
- g_factory = LAZY_INSTANCE_INITIALIZER;
-
-// static
-ProfileKeyedAPIFactory<CSPParser>* CSPParser::GetFactoryInstance() {
- return &g_factory.Get();
-}
-
-} // namespace extensions
« no previous file with comments | « chrome/browser/extensions/csp_parser.h ('k') | chrome/browser/extensions/extension_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698