Index: chrome/browser/notifications/notification_ui_manager_mac.mm |
diff --git a/chrome/browser/notifications/notification_ui_manager_mac.mm b/chrome/browser/notifications/notification_ui_manager_mac.mm |
index 9010beb0f6a5a1f207b9314b9cb2a1c3979dc445..9cdca8a4a27ef6434e9c4df2cc6e8c7c73cb8958 100644 |
--- a/chrome/browser/notifications/notification_ui_manager_mac.mm |
+++ b/chrome/browser/notifications/notification_ui_manager_mac.mm |
@@ -119,11 +119,12 @@ void NotificationUIManagerMac::Add(const Notification& notification, |
// TODO(miguelg): Implement support for buttons |
toast.get().hasActionButton = NO; |
- // Some functionality is only available in 10.9+ |
+ // Some functionality is only available in 10.9+ or requires private APIs |
// Icon |
- if ([toast respondsToSelector:@selector(setContentImage:)]) { |
- [toast setValue:notification.icon().ToNSImage() forKey:@"contentImage"]; |
- } |
+ if ([toast respondsToSelector:@selector(_identityImage)]) { |
+ [toast setValue:notification.icon().ToNSImage() forKey:@"_identityImage"]; |
+ [toast setValue:@NO forKey:@"_identityImageHasBorder"]; |
+ } |
Peter Beverloo
2016/01/21 13:45:14
-1 space indentation
Miguel Garcia
2016/01/25 15:15:26
Done.
|
// Tag |
if ([toast respondsToSelector:@selector(setIdentifier:)] && |