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

Side by Side Diff: extensions/browser/extension_pref_value_map_factory.cc

Issue 197413002: Move extensions-related files to using //components/keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/extension_pref_value_map_factory.h" 5 #include "extensions/browser/extension_pref_value_map_factory.h"
6 6
7 #include "components/browser_context_keyed_service/browser_context_dependency_ma nager.h" 7 #include "components/keyed_service/content/browser_context_dependency_manager.h"
8 #include "extensions/browser/extension_pref_value_map.h" 8 #include "extensions/browser/extension_pref_value_map.h"
9 9
10 ExtensionPrefValueMapFactory::ExtensionPrefValueMapFactory() 10 ExtensionPrefValueMapFactory::ExtensionPrefValueMapFactory()
11 : BrowserContextKeyedServiceFactory( 11 : BrowserContextKeyedServiceFactory(
12 "ExtensionPrefValueMap", 12 "ExtensionPrefValueMap",
13 BrowserContextDependencyManager::GetInstance()) { 13 BrowserContextDependencyManager::GetInstance()) {
14 } 14 }
15 15
16 ExtensionPrefValueMapFactory::~ExtensionPrefValueMapFactory() { 16 ExtensionPrefValueMapFactory::~ExtensionPrefValueMapFactory() {
17 } 17 }
18 18
19 // static 19 // static
20 ExtensionPrefValueMap* ExtensionPrefValueMapFactory::GetForBrowserContext( 20 ExtensionPrefValueMap* ExtensionPrefValueMapFactory::GetForBrowserContext(
21 content::BrowserContext* context) { 21 content::BrowserContext* context) {
22 return static_cast<ExtensionPrefValueMap*>( 22 return static_cast<ExtensionPrefValueMap*>(
23 GetInstance()->GetServiceForBrowserContext(context, true)); 23 GetInstance()->GetServiceForBrowserContext(context, true));
24 } 24 }
25 25
26 // static 26 // static
27 ExtensionPrefValueMapFactory* ExtensionPrefValueMapFactory::GetInstance() { 27 ExtensionPrefValueMapFactory* ExtensionPrefValueMapFactory::GetInstance() {
28 return Singleton<ExtensionPrefValueMapFactory>::get(); 28 return Singleton<ExtensionPrefValueMapFactory>::get();
29 } 29 }
30 30
31 BrowserContextKeyedService* 31 KeyedService* ExtensionPrefValueMapFactory::BuildServiceInstanceFor(
32 ExtensionPrefValueMapFactory::BuildServiceInstanceFor(
33 content::BrowserContext* context) const { 32 content::BrowserContext* context) const {
34 return new ExtensionPrefValueMap(); 33 return new ExtensionPrefValueMap();
35 } 34 }
OLDNEW
« no previous file with comments | « extensions/browser/extension_pref_value_map_factory.h ('k') | extensions/browser/extension_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698