Chromium Code Reviews| OLD | NEW |
|---|---|
| (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/api/content_scripts/content_scripts_api.h" | |
|
not at google - send to devlin
2013/03/20 17:13:39
There is a (loose) convention at the moment where
| |
| 6 | |
| 7 #include "base/lazy_instance.h" | |
| 8 #include "chrome/common/extensions/api/content_scripts/content_scripts_handler.h " | |
| 9 | |
| 10 namespace extensions { | |
| 11 | |
| 12 static base::LazyInstance<ProfileKeyedAPIFactory<ContentScriptsAPI> > | |
| 13 g_factory = LAZY_INSTANCE_INITIALIZER; | |
| 14 | |
| 15 // static | |
| 16 ProfileKeyedAPIFactory<ContentScriptsAPI>* | |
| 17 ContentScriptsAPI::GetFactoryInstance() { | |
| 18 return &g_factory.Get(); | |
| 19 } | |
| 20 | |
| 21 ContentScriptsAPI::ContentScriptsAPI(Profile* profile) { | |
| 22 (new ContentScriptsHandler)->Register(); | |
| 23 } | |
| 24 | |
| 25 ContentScriptsAPI::~ContentScriptsAPI() { | |
| 26 } | |
| 27 | |
| 28 } // namespace extensions | |
| OLD | NEW |