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

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

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 10 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.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)
« no previous file with comments | « chrome/browser/extensions/api/bluetooth/bluetooth_api.h ('k') | chrome/browser/extensions/api/bookmarks/bookmarks_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698