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

Side by Side Diff: chrome/browser/extensions/api/icons/icons_api.cc

Issue 12253022: Manifest handler for all keys background-related. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/icons/icons_api.h" 5 #include "chrome/browser/extensions/api/icons/icons_api.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/memory/linked_ptr.h" 8 #include "base/memory/linked_ptr.h"
9 #include "chrome/common/extensions/api/icons/icons_handler.h" 9 #include "chrome/common/extensions/api/icons/icons_handler.h"
10 #include "chrome/common/extensions/extension_manifest_constants.h" 10 #include "chrome/common/extensions/extension_manifest_constants.h"
11 #include "chrome/common/extensions/manifest_handler.h" 11 #include "chrome/common/extensions/manifest_handler.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 static base::LazyInstance<ProfileKeyedAPIFactory<IconsAPI> > 15 static base::LazyInstance<ProfileKeyedAPIFactory<IconsAPI> >
16 g_factory = LAZY_INSTANCE_INITIALIZER; 16 g_factory = LAZY_INSTANCE_INITIALIZER;
17 17
18 // static 18 // static
19 ProfileKeyedAPIFactory<IconsAPI>* IconsAPI::GetFactoryInstance() { 19 ProfileKeyedAPIFactory<IconsAPI>* IconsAPI::GetFactoryInstance() {
20 return &g_factory.Get(); 20 return &g_factory.Get();
21 } 21 }
22 22
23 IconsAPI::IconsAPI(Profile* profile) { 23 IconsAPI::IconsAPI(Profile* profile) {
24 ManifestHandler::Register(extension_manifest_keys::kIcons, 24 (new IconsHandler)->Register();
25 make_linked_ptr(new IconsHandler));
26 } 25 }
27 26
28 IconsAPI::~IconsAPI() { 27 IconsAPI::~IconsAPI() {
29 } 28 }
30 29
31 } // namespace extensions 30 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/i18n/i18n_api.cc ('k') | chrome/browser/extensions/api/identity/identity_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698