Index: chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
index ac0b7745cfa4f54887bc908e17617d894e9276ae..6b2b8db27b6bf6c494717f106d05a583666b5693 100644 |
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_api.cc |
@@ -78,17 +78,18 @@ namespace Write = extensions::api::bluetooth::Write; |
namespace extensions { |
-static base::LazyInstance<ProfileKeyedAPIFactory<BluetoothAPI> > g_factory = |
- LAZY_INSTANCE_INITIALIZER; |
+static base::LazyInstance<BrowserContextKeyedAPIFactory<BluetoothAPI> > |
+ g_factory = LAZY_INSTANCE_INITIALIZER; |
// static |
-ProfileKeyedAPIFactory<BluetoothAPI>* BluetoothAPI::GetFactoryInstance() { |
+BrowserContextKeyedAPIFactory<BluetoothAPI>* |
+BluetoothAPI::GetFactoryInstance() { |
return g_factory.Pointer(); |
} |
// static |
BluetoothAPI* BluetoothAPI::Get(BrowserContext* context) { |
- return GetFactoryInstance()->GetForProfile(context); |
+ return GetFactoryInstance()->Get(context); |
} |
BluetoothAPI::BluetoothAPI(BrowserContext* context) |