| 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 a3b208c932080984a698579a650e8064642d0467..dd9cf1ff6ad71fd5c10707479e0427f188bcaec8 100644
|
| --- a/chrome/browser/notifications/platform_notification_service_impl.cc
|
| +++ b/chrome/browser/notifications/platform_notification_service_impl.cc
|
| @@ -383,6 +383,18 @@ bool PlatformNotificationServiceImpl::GetDisplayedNotifications(
|
| displayed_notifications);
|
| }
|
|
|
| +void PlatformNotificationServiceImpl::GetDisplayedNotificationsAsync(
|
| + BrowserContext* browser_context,
|
| + const NotificationCommon::NotificationResultCallback& callback) {
|
| + DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| +
|
| + Profile* profile = Profile::FromBrowserContext(browser_context);
|
| + if (!profile || profile->AsTestingProfile())
|
| + return; // Tests will not have a message center.
|
| +
|
| + GetNotificationDisplayService(profile)->GetDisplayedAsync(callback);
|
| +}
|
| +
|
| void PlatformNotificationServiceImpl::OnClickEventDispatchComplete(
|
| content::PersistentNotificationStatus status) {
|
| UMA_HISTOGRAM_ENUMERATION(
|
|
|