Bluetooth: replace "profiles" with "uuids"
[chromium-blink-merge.git] / extensions / browser / extension_pref_value_map_factory.cc
blob6ce78e83d2a21fcff40c11a58063025222c552f1
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
3 // found in the LICENSE file.
5 #include "extensions/browser/extension_pref_value_map_factory.h"
7 #include "components/keyed_service/content/browser_context_dependency_manager.h"
8 #include "extensions/browser/extension_pref_value_map.h"
10 ExtensionPrefValueMapFactory::ExtensionPrefValueMapFactory()
11 : BrowserContextKeyedServiceFactory(
12 "ExtensionPrefValueMap",
13 BrowserContextDependencyManager::GetInstance()) {
16 ExtensionPrefValueMapFactory::~ExtensionPrefValueMapFactory() {
19 // static
20 ExtensionPrefValueMap* ExtensionPrefValueMapFactory::GetForBrowserContext(
21 content::BrowserContext* context) {
22 return static_cast<ExtensionPrefValueMap*>(
23 GetInstance()->GetServiceForBrowserContext(context, true));
26 // static
27 ExtensionPrefValueMapFactory* ExtensionPrefValueMapFactory::GetInstance() {
28 return Singleton<ExtensionPrefValueMapFactory>::get();
31 KeyedService* ExtensionPrefValueMapFactory::BuildServiceInstanceFor(
32 content::BrowserContext* context) const {
33 return new ExtensionPrefValueMap();