This source file includes following definitions.
- GetForBrowserContext
- GetInstance
- BuildServiceInstanceFor
#include "extensions/browser/extension_pref_value_map_factory.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "extensions/browser/extension_pref_value_map.h"
ExtensionPrefValueMapFactory::ExtensionPrefValueMapFactory()
: BrowserContextKeyedServiceFactory(
"ExtensionPrefValueMap",
BrowserContextDependencyManager::GetInstance()) {
}
ExtensionPrefValueMapFactory::~ExtensionPrefValueMapFactory() {
}
ExtensionPrefValueMap* ExtensionPrefValueMapFactory::GetForBrowserContext(
content::BrowserContext* context) {
return static_cast<ExtensionPrefValueMap*>(
GetInstance()->GetServiceForBrowserContext(context, true));
}
ExtensionPrefValueMapFactory* ExtensionPrefValueMapFactory::GetInstance() {
return Singleton<ExtensionPrefValueMapFactory>::get();
}
KeyedService* ExtensionPrefValueMapFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
return new ExtensionPrefValueMap();
}