summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/content_scripts_parser.cc
blob: 422919536440bfbdf760688b4cf2c137fb889245 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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