Index: chrome/browser/notifications/desktop_notification_service_factory.cc |
diff --git a/chrome/browser/notifications/desktop_notification_service_factory.cc b/chrome/browser/notifications/desktop_notification_service_factory.cc |
index acf6b51e09f47bb14e47f289445ce68467842fe0..f8b958a485dd6044ce1d8cac08711a02821f25e8 100644 |
--- a/chrome/browser/notifications/desktop_notification_service_factory.cc |
+++ b/chrome/browser/notifications/desktop_notification_service_factory.cc |
@@ -18,7 +18,7 @@ DesktopNotificationService* DesktopNotificationServiceFactory::GetForProfile( |
Profile* profile) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
return static_cast<DesktopNotificationService*>( |
- GetInstance()->GetServiceForProfile(profile, true)); |
+ GetInstance()->GetServiceForBrowserContext(profile, true)); |
} |
// static |
@@ -28,14 +28,16 @@ DesktopNotificationServiceFactory* DesktopNotificationServiceFactory:: |
} |
DesktopNotificationServiceFactory::DesktopNotificationServiceFactory() |
- : ProfileKeyedServiceFactory("DesktopNotificationService", |
- ProfileDependencyManager::GetInstance()) { |
+ : BrowserContextKeyedServiceFactory( |
+ "DesktopNotificationService", |
+ BrowserContextDependencyManager::GetInstance()) { |
} |
DesktopNotificationServiceFactory::~DesktopNotificationServiceFactory() { |
} |
-ProfileKeyedService* DesktopNotificationServiceFactory::BuildServiceInstanceFor( |
+BrowserContextKeyedService* |
+DesktopNotificationServiceFactory::BuildServiceInstanceFor( |
content::BrowserContext* profile) const { |
DesktopNotificationService* service = |
new DesktopNotificationService(static_cast<Profile*>(profile), NULL); |