| 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/icons/icons_api.h" | |
| 6 | |
| 7 #include "base/lazy_instance.h" | |
| 8 #include "base/memory/linked_ptr.h" | |
| 9 #include "chrome/common/extensions/api/icons/icons_handler.h" | |
| 10 #include "chrome/common/extensions/extension_manifest_constants.h" | |
| 11 #include "chrome/common/extensions/manifest_handler.h" | |
| 12 | |
| 13 namespace extensions { | |
| 14 | |
| 15 static base::LazyInstance<ProfileKeyedAPIFactory<IconsAPI> > | |
| 16 g_factory = LAZY_INSTANCE_INITIALIZER; | |
| 17 | |
| 18 // static | |
| 19 ProfileKeyedAPIFactory<IconsAPI>* IconsAPI::GetFactoryInstance() { | |
| 20 return &g_factory.Get(); | |
| 21 } | |
| 22 | |
| 23 IconsAPI::IconsAPI(Profile* profile) { | |
| 24 (new IconsHandler)->Register(); | |
| 25 } | |
| 26 | |
| 27 IconsAPI::~IconsAPI() { | |
| 28 } | |
| 29 | |
| 30 } // namespace extensions | |
| OLD | NEW |