| 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/plugins/plugins_api.h" | |
| 6 | |
| 7 #include "base/lazy_instance.h" | |
| 8 #include "chrome/common/extensions/api/plugins/plugins_handler.h" | |
| 9 | |
| 10 namespace extensions { | |
| 11 | |
| 12 static base::LazyInstance<ProfileKeyedAPIFactory<PluginsAPI> > | |
| 13 g_factory = LAZY_INSTANCE_INITIALIZER; | |
| 14 | |
| 15 // static | |
| 16 ProfileKeyedAPIFactory<PluginsAPI>* PluginsAPI::GetFactoryInstance() { | |
| 17 return &g_factory.Get(); | |
| 18 } | |
| 19 | |
| 20 PluginsAPI::PluginsAPI(Profile* profile) { | |
| 21 (new PluginsHandler)->Register(); | |
| 22 } | |
| 23 | |
| 24 PluginsAPI::~PluginsAPI() { | |
| 25 } | |
| 26 | |
| 27 } // namespace extensions | |
| OLD | NEW |