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

Unified Diff: chrome/browser/extensions/api/location/location_manager.cc

Issue 178193030: Rename ProfileKeyedAPI to BrowserContextKeyedAPI and GetProfile to Get. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/location/location_manager.cc
diff --git a/chrome/browser/extensions/api/location/location_manager.cc b/chrome/browser/extensions/api/location/location_manager.cc
index d9dedaaf6ef4b3a2948ab56b3a7b4f7a37aefc3b..ad5ebe2f577ff9331267fe4f4aeb667446189179 100644
--- a/chrome/browser/extensions/api/location/location_manager.cc
+++ b/chrome/browser/extensions/api/location/location_manager.cc
@@ -430,17 +430,18 @@ void LocationManager::Observe(int type,
}
}
-static base::LazyInstance<ProfileKeyedAPIFactory<LocationManager> >
-g_factory = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<BrowserContextKeyedAPIFactory<LocationManager> >
+ g_factory = LAZY_INSTANCE_INITIALIZER;
// static
-ProfileKeyedAPIFactory<LocationManager>* LocationManager::GetFactoryInstance() {
+BrowserContextKeyedAPIFactory<LocationManager>*
+LocationManager::GetFactoryInstance() {
return g_factory.Pointer();
}
// static
LocationManager* LocationManager::Get(content::BrowserContext* context) {
- return ProfileKeyedAPIFactory<LocationManager>::GetForProfile(context);
+ return BrowserContextKeyedAPIFactory<LocationManager>::Get(context);
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698