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

Unified Diff: chrome/browser/notifications/platform_notification_service_impl.cc

Issue 1895473002: PlatformNotificationService layering cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@display_manager2
Patch Set: Created 4 years, 8 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/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

Powered by Google App Engine
This is Rietveld 408576698