Remove parameter |by_user| in NotificationClosed

This commit is contained in:
Cheng Zhao 2015-05-22 14:51:16 +08:00
parent 0cbf8b6cd2
commit 37bd7fe331
2 changed files with 3 additions and 3 deletions

View file

@ -140,7 +140,7 @@ void NotificationPresenterLinux::CancelNotification(NotifyNotification* notifica
if (error) if (error)
log_and_clear_error(error, "notify_notification_close"); log_and_clear_error(error, "notify_notification_close");
GetDelegateFromNotification(notification)->NotificationClosed(false); GetDelegateFromNotification(notification)->NotificationClosed();
DeleteNotification(notification); DeleteNotification(notification);
} }
@ -150,7 +150,7 @@ void NotificationPresenterLinux::DeleteNotification(NotifyNotification* notifica
} }
void NotificationPresenterLinux::OnNotificationClosed(NotifyNotification* notification) { void NotificationPresenterLinux::OnNotificationClosed(NotifyNotification* notification) {
GetDelegateFromNotification(notification)->NotificationClosed(false); GetDelegateFromNotification(notification)->NotificationClosed();
DeleteNotification(notification); DeleteNotification(notification);
} }

View file

@ -85,7 +85,7 @@ void NotificationPresenterMac::CancelNotification(content::DesktopNotificationDe
for (NSUserNotification* deliveredNotification in center.deliveredNotifications) for (NSUserNotification* deliveredNotification in center.deliveredNotifications)
if ([notification isEqual:deliveredNotification]) { if ([notification isEqual:deliveredNotification]) {
[center removeDeliveredNotification:deliveredNotification]; [center removeDeliveredNotification:deliveredNotification];
delegate->NotificationClosed(false); delegate->NotificationClosed();
break; break;
} }