Index: chrome/browser/drive/drive_notification_manager_factory.cc |
diff --git a/chrome/browser/drive/drive_notification_manager_factory.cc b/chrome/browser/drive/drive_notification_manager_factory.cc |
index 4792e08425858c1e72f01916b93a35fc382db41e..b7f304f063bbe8c6a2376e27c1a2aa9dbdcafcad 100644 |
--- a/chrome/browser/drive/drive_notification_manager_factory.cc |
+++ b/chrome/browser/drive/drive_notification_manager_factory.cc |
@@ -15,12 +15,13 @@ namespace drive { |
// static |
DriveNotificationManager* |
-DriveNotificationManagerFactory::GetForProfile(Profile* profile) { |
+DriveNotificationManagerFactory::GetForBrowserContext( |
+ content::BrowserContext* context) { |
if (!ProfileSyncService::IsSyncEnabled()) |
return NULL; |
return static_cast<DriveNotificationManager*>( |
- GetInstance()->GetServiceForBrowserContext(profile, true)); |
+ GetInstance()->GetServiceForBrowserContext(context, true)); |
} |
// static |
@@ -41,8 +42,10 @@ DriveNotificationManagerFactory::~DriveNotificationManagerFactory() {} |
BrowserContextKeyedService* |
DriveNotificationManagerFactory::BuildServiceInstanceFor( |
- content::BrowserContext* profile) const { |
- return new DriveNotificationManager(static_cast<Profile*>(profile)); |
+ content::BrowserContext* context) const { |
+ return new DriveNotificationManager( |
+ invalidation::InvalidationServiceFactory::GetForProfile( |
+ static_cast<Profile*>(context))); |
kinuko
2013/09/02 07:05:11
Profile::FromBrowserContext(context) would be bett
tzik
2013/09/02 08:42:36
Done.
|
} |
} // namespace drive |