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

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

Issue 2534443002: Use notification display service to collect persistent notifications. (Closed)
Patch Set: fix layout tests Created 4 years 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 2f79b35ba28726a7a4df6c89f2a6657713a91913..ab3bef99b80ace0df413408dada8ac513ca0d94f 100644
--- a/chrome/browser/notifications/platform_notification_service_impl.cc
+++ b/chrome/browser/notifications/platform_notification_service_impl.cc
@@ -361,7 +361,7 @@ void PlatformNotificationServiceImpl::ClosePersistentNotification(
notification_id);
}
-bool PlatformNotificationServiceImpl::GetDisplayedPersistentNotifications(
+bool PlatformNotificationServiceImpl::GetDisplayedNotifications(
BrowserContext* browser_context,
std::set<std::string>* displayed_notifications) {
DCHECK(displayed_notifications);
@@ -370,7 +370,6 @@ bool PlatformNotificationServiceImpl::GetDisplayedPersistentNotifications(
if (!profile || profile->AsTestingProfile())
return false; // Tests will not have a message center.
- // TODO(peter): Filter for persistent notifications only.
return GetNotificationDisplayService(profile)->GetDisplayed(
displayed_notifications);
}

Powered by Google App Engine
This is Rietveld 408576698