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

Unified Diff: chrome/browser/extensions/api/media_galleries_private/media_galleries_private_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/media_galleries_private/media_galleries_private_api.cc
diff --git a/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.cc b/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.cc
index b8fd72ae9d8da2df6b498b1d79d0cacae37164ae..21023340daae7890d40f2afa466e6bf8e6dc0ad9 100644
--- a/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.cc
+++ b/chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.cc
@@ -105,20 +105,20 @@ void MediaGalleriesPrivateAPI::Shutdown() {
base::Bind(&HandleProfileShutdownOnFileThread, profile_));
}
-static base::LazyInstance<ProfileKeyedAPIFactory<MediaGalleriesPrivateAPI> >
-g_factory = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<
+ BrowserContextKeyedAPIFactory<MediaGalleriesPrivateAPI> > g_factory =
+ LAZY_INSTANCE_INITIALIZER;
// static
-ProfileKeyedAPIFactory<MediaGalleriesPrivateAPI>*
- MediaGalleriesPrivateAPI::GetFactoryInstance() {
+BrowserContextKeyedAPIFactory<MediaGalleriesPrivateAPI>*
+MediaGalleriesPrivateAPI::GetFactoryInstance() {
return g_factory.Pointer();
}
// static
MediaGalleriesPrivateAPI* MediaGalleriesPrivateAPI::Get(
content::BrowserContext* context) {
- return ProfileKeyedAPIFactory<MediaGalleriesPrivateAPI>::GetForProfile(
- context);
+ return BrowserContextKeyedAPIFactory<MediaGalleriesPrivateAPI>::Get(context);
}
void MediaGalleriesPrivateAPI::OnListenerAdded(

Powered by Google App Engine
This is Rietveld 408576698