From b99ff3448e911f209acceaeb4a8fdffebe03519f Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Thu, 21 Feb 2019 13:20:18 +0530 Subject: [PATCH] Use base::BindOnce in notifications code https://chromium-review.googlesource.com/c/chromium/src/+/1418170 --- atom/browser/notifications/platform_notification_service.cc | 2 +- atom/browser/notifications/platform_notification_service.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/atom/browser/notifications/platform_notification_service.cc b/atom/browser/notifications/platform_notification_service.cc index 2dda121b1c41..410315591ccd 100644 --- a/atom/browser/notifications/platform_notification_service.cc +++ b/atom/browser/notifications/platform_notification_service.cc @@ -122,7 +122,7 @@ void PlatformNotificationService::CloseNotification( void PlatformNotificationService::GetDisplayedNotifications( content::BrowserContext* browser_context, - const DisplayedNotificationsCallback& callback) {} + DisplayedNotificationsCallback callback) {} int64_t PlatformNotificationService::ReadNextPersistentNotificationId( content::BrowserContext* browser_context) { diff --git a/atom/browser/notifications/platform_notification_service.h b/atom/browser/notifications/platform_notification_service.h index aa485c2ad783..758eaf2c7f6a 100644 --- a/atom/browser/notifications/platform_notification_service.h +++ b/atom/browser/notifications/platform_notification_service.h @@ -43,7 +43,7 @@ class PlatformNotificationService const std::string& notification_id) override; void GetDisplayedNotifications( content::BrowserContext* browser_context, - const DisplayedNotificationsCallback& callback) override; + DisplayedNotificationsCallback callback) override; int64_t ReadNextPersistentNotificationId( content::BrowserContext* browser_context) override; void RecordNotificationUkmEvent(