diff --git a/shell/browser/notifications/mac/cocoa_notification.mm b/shell/browser/notifications/mac/cocoa_notification.mm index 78d6e41976ab6..b8fcf4b04e985 100644 --- a/shell/browser/notifications/mac/cocoa_notification.mm +++ b/shell/browser/notifications/mac/cocoa_notification.mm @@ -33,7 +33,7 @@ NSString* identifier = [NSString stringWithFormat:@"%@:notification:%@", [[NSBundle mainBundle] bundleIdentifier], - [[[NSUUID alloc] init] UUIDString]]; + [[NSUUID UUID] UUIDString]]; [notification_ setTitle:base::SysUTF16ToNSString(options.title)]; [notification_ setSubtitle:base::SysUTF16ToNSString(options.subtitle)];