summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc')
-rw-r--r--chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc
index 00f0cf6..71a3a4b 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc
@@ -15,7 +15,7 @@ namespace extensions {
// static
BluetoothAPI* BluetoothAPIFactory::GetForProfile(Profile* profile) {
return static_cast<BluetoothAPI*>(
- GetInstance()->GetServiceForProfile(profile, true));
+ GetInstance()->GetServiceForBrowserContext(profile, true));
}
// static
@@ -24,15 +24,16 @@ BluetoothAPIFactory* BluetoothAPIFactory::GetInstance() {
}
BluetoothAPIFactory::BluetoothAPIFactory()
- : ProfileKeyedServiceFactory("BluetoothAPI",
- ProfileDependencyManager::GetInstance()) {
+ : BrowserContextKeyedServiceFactory(
+ "BluetoothAPI",
+ BrowserContextDependencyManager::GetInstance()) {
DependsOn(ExtensionSystemFactory::GetInstance());
}
BluetoothAPIFactory::~BluetoothAPIFactory() {
}
-ProfileKeyedService* BluetoothAPIFactory::BuildServiceInstanceFor(
+BrowserContextKeyedService* BluetoothAPIFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
return new BluetoothAPI(static_cast<Profile*>(profile));
}
@@ -42,7 +43,7 @@ content::BrowserContext* BluetoothAPIFactory::GetBrowserContextToUse(
return chrome::GetBrowserContextRedirectedInIncognito(context);
}
-bool BluetoothAPIFactory::ServiceIsCreatedWithProfile() const {
+bool BluetoothAPIFactory::ServiceIsCreatedWithBrowserContext() const {
return true;
}