set notification close callback before requesting user permission

This commit is contained in:
deepak1556 2016-10-25 19:02:06 +05:30
parent 4fdca64030
commit ee4442f964
4 changed files with 33 additions and 35 deletions

View file

@ -24,8 +24,9 @@ CocoaNotification::CocoaNotification(NotificationDelegate* delegate,
}
CocoaNotification::~CocoaNotification() {
[NSUserNotificationCenter.defaultUserNotificationCenter
removeDeliveredNotification:notification_];
if (notification_)
[NSUserNotificationCenter.defaultUserNotificationCenter
removeDeliveredNotification:notification_];
}
void CocoaNotification::Show(const base::string16& title,