Plumb in the macOS soundName property for notifications.

This commit is contained in:
Charlie Hess 2017-08-17 00:06:27 -07:00
parent 4bc4a0c45b
commit 0cfae1cc2b
No known key found for this signature in database
GPG key ID: 12C6D6B5324956AB
5 changed files with 20 additions and 1 deletions

View file

@ -39,6 +39,8 @@ void CocoaNotification::Show(const NotificationOptions& options) {
if (options.silent) {
[notification_ setSoundName:nil];
} else if (options.sound_name != nil) {
[notification_ setSoundName:base::SysUTF16ToNSString(options.sound_name)];
} else {
[notification_ setSoundName:NSUserNotificationDefaultSoundName];
}