From 37bd7fe3315c52b5e9f722c7e2315dd1059f978d Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 22 May 2015 14:51:16 +0800 Subject: [PATCH] Remove parameter |by_user| in NotificationClosed --- brightray/browser/linux/notification_presenter_linux.cc | 4 ++-- brightray/browser/notification_presenter_mac.mm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/brightray/browser/linux/notification_presenter_linux.cc b/brightray/browser/linux/notification_presenter_linux.cc index 3ff75c5115..9baa4474e9 100644 --- a/brightray/browser/linux/notification_presenter_linux.cc +++ b/brightray/browser/linux/notification_presenter_linux.cc @@ -140,7 +140,7 @@ void NotificationPresenterLinux::CancelNotification(NotifyNotification* notifica if (error) log_and_clear_error(error, "notify_notification_close"); - GetDelegateFromNotification(notification)->NotificationClosed(false); + GetDelegateFromNotification(notification)->NotificationClosed(); DeleteNotification(notification); } @@ -150,7 +150,7 @@ void NotificationPresenterLinux::DeleteNotification(NotifyNotification* notifica } void NotificationPresenterLinux::OnNotificationClosed(NotifyNotification* notification) { - GetDelegateFromNotification(notification)->NotificationClosed(false); + GetDelegateFromNotification(notification)->NotificationClosed(); DeleteNotification(notification); } diff --git a/brightray/browser/notification_presenter_mac.mm b/brightray/browser/notification_presenter_mac.mm index cbe25c65a4..3b0c736daa 100644 --- a/brightray/browser/notification_presenter_mac.mm +++ b/brightray/browser/notification_presenter_mac.mm @@ -85,7 +85,7 @@ void NotificationPresenterMac::CancelNotification(content::DesktopNotificationDe for (NSUserNotification* deliveredNotification in center.deliveredNotifications) if ([notification isEqual:deliveredNotification]) { [center removeDeliveredNotification:deliveredNotification]; - delegate->NotificationClosed(false); + delegate->NotificationClosed(); break; }