Add more guards around null notification
This commit is contained in:
parent
ee4442f964
commit
0a5f7171d4
2 changed files with 9 additions and 7 deletions
|
@ -57,8 +57,9 @@ void CocoaNotification::Show(const base::string16& title,
|
|||
}
|
||||
|
||||
void CocoaNotification::Dismiss() {
|
||||
[NSUserNotificationCenter.defaultUserNotificationCenter
|
||||
removeDeliveredNotification:notification_];
|
||||
if (notification_)
|
||||
[NSUserNotificationCenter.defaultUserNotificationCenter
|
||||
removeDeliveredNotification:notification_];
|
||||
NotificationDismissed();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue