Index: chrome/browser/google_apis/drive_notification_manager_factory.cc |
diff --git a/chrome/browser/google_apis/drive_notification_manager_factory.cc b/chrome/browser/google_apis/drive_notification_manager_factory.cc |
index 0d77ea7facee5edf37f7b45cfb7a8468e55e1608..9c28800ebeff82f701fbce995acd858ab89a5388 100644 |
--- a/chrome/browser/google_apis/drive_notification_manager_factory.cc |
+++ b/chrome/browser/google_apis/drive_notification_manager_factory.cc |
@@ -19,7 +19,7 @@ DriveNotificationManagerFactory::GetForProfile(Profile* profile) { |
return NULL; |
return static_cast<DriveNotificationManager*>( |
- GetInstance()->GetServiceForProfile(profile, true)); |
+ GetInstance()->GetServiceForBrowserContext(profile, true)); |
} |
// static |
@@ -29,14 +29,16 @@ DriveNotificationManagerFactory::GetInstance() { |
} |
DriveNotificationManagerFactory::DriveNotificationManagerFactory() |
- : ProfileKeyedServiceFactory("DriveNotificationManager", |
- ProfileDependencyManager::GetInstance()) { |
+ : BrowserContextKeyedServiceFactory( |
+ "DriveNotificationManager", |
+ BrowserContextDependencyManager::GetInstance()) { |
DependsOn(ProfileSyncServiceFactory::GetInstance()); |
} |
DriveNotificationManagerFactory::~DriveNotificationManagerFactory() {} |
-ProfileKeyedService* DriveNotificationManagerFactory::BuildServiceInstanceFor( |
+BrowserContextKeyedService* |
+DriveNotificationManagerFactory::BuildServiceInstanceFor( |
content::BrowserContext* profile) const { |
return new DriveNotificationManager(static_cast<Profile*>(profile)); |
} |