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

Unified Diff: chrome/browser/extensions/api/push_messaging/push_messaging_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/push_messaging/push_messaging_api.cc
diff --git a/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc b/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc
index cab73624538d37285a1216569594a697f5bdc8a1..f3862a98a95be8e9e9d4633d1492513b40b51462 100644
--- a/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc
+++ b/chrome/browser/extensions/api/push_messaging/push_messaging_api.cc
@@ -296,7 +296,7 @@ PushMessagingAPI::~PushMessagingAPI() {
// static
PushMessagingAPI* PushMessagingAPI::Get(content::BrowserContext* context) {
- return ProfileKeyedAPIFactory<PushMessagingAPI>::GetForProfile(context);
+ return BrowserContextKeyedAPIFactory<PushMessagingAPI>::Get(context);
}
void PushMessagingAPI::Shutdown() {
@@ -304,11 +304,11 @@ void PushMessagingAPI::Shutdown() {
handler_.reset();
}
-static base::LazyInstance<ProfileKeyedAPIFactory<PushMessagingAPI> >
-g_factory = LAZY_INSTANCE_INITIALIZER;
+static base::LazyInstance<BrowserContextKeyedAPIFactory<PushMessagingAPI> >
+ g_factory = LAZY_INSTANCE_INITIALIZER;
// static
-ProfileKeyedAPIFactory<PushMessagingAPI>*
+BrowserContextKeyedAPIFactory<PushMessagingAPI>*
PushMessagingAPI::GetFactoryInstance() {
return g_factory.Pointer();
}
@@ -364,7 +364,8 @@ void PushMessagingAPI::SetMapperForTest(
}
template <>
-void ProfileKeyedAPIFactory<PushMessagingAPI>::DeclareFactoryDependencies() {
+void
+BrowserContextKeyedAPIFactory<PushMessagingAPI>::DeclareFactoryDependencies() {
DependsOn(ExtensionsBrowserClient::Get()->GetExtensionSystemFactory());
DependsOn(invalidation::InvalidationServiceFactory::GetInstance());
}
« no previous file with comments | « chrome/browser/extensions/api/push_messaging/push_messaging_api.h ('k') | chrome/browser/extensions/api/runtime/runtime_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698