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

Unified Diff: chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_api_factory.cc
index 00f0cf6324e290b322cb5e88fd516d3d7c54f485..71a3a4b309ef47ee8c92cce88426e31318d8d33f 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;
}

Powered by Google App Engine
This is Rietveld 408576698