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

Side by Side Diff: chrome/browser/extensions/api/management/management_api_factory.cc

Issue 11682005: Remove some Profile-keyed factory boilerplate: management omnibox preference push_messaging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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
(Empty)
1 // Copyright (c) 2012 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/management/management_api_factory.h"
6
7 #include "chrome/browser/extensions/api/management/management_api.h"
8 #include "chrome/browser/extensions/extension_system_factory.h"
9 #include "chrome/browser/profiles/profile_dependency_manager.h"
10
11 // static
12 ExtensionManagementAPIFactory* ExtensionManagementAPIFactory::GetInstance() {
13 return Singleton<ExtensionManagementAPIFactory>::get();
14 }
15
16 ExtensionManagementAPIFactory::ExtensionManagementAPIFactory()
17 : ProfileKeyedServiceFactory("ExtensionManagementAPI",
18 ProfileDependencyManager::GetInstance()) {
19 DependsOn(extensions::ExtensionSystemFactory::GetInstance());
20 }
21
22 ExtensionManagementAPIFactory::~ExtensionManagementAPIFactory() {
23 }
24
25 ProfileKeyedService* ExtensionManagementAPIFactory::BuildServiceInstanceFor(
26 Profile* profile) const {
27 return new ExtensionManagementAPI(profile);
28 }
29
30 bool ExtensionManagementAPIFactory::ServiceIsCreatedWithProfile() const {
31 return true;
32 }
33
34 bool ExtensionManagementAPIFactory::ServiceIsNULLWhileTesting() const {
35 return true;
36 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/management/management_api_factory.h ('k') | chrome/browser/extensions/api/omnibox/omnibox_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698