Index: chrome/browser/notifications/platform_notification_service_impl.cc |
diff --git a/chrome/browser/notifications/platform_notification_service_impl.cc b/chrome/browser/notifications/platform_notification_service_impl.cc |
index 991615386a88bd7f8039048b4bbca2b8032f9d82..a37ee80e492013b5eae06a7598fbb23f3552c971 100644 |
--- a/chrome/browser/notifications/platform_notification_service_impl.cc |
+++ b/chrome/browser/notifications/platform_notification_service_impl.cc |
@@ -93,9 +93,8 @@ void OnCloseEventDispatchComplete( |
void OnCloseNonPersistentNotificationProfileLoaded( |
const std::string& notification_id, |
Profile* profile) { |
- PlatformNotificationServiceImpl::GetInstance() |
- ->GetNotificationDisplayService(profile) |
- ->Close(notification_id); |
+ NotificationDisplayServiceFactory::GetForProfile(profile)->Close( |
+ notification_id); |
} |
// Callback to run once the profile has been loaded in order to perform a |