Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2027)

Unified Diff: chrome/browser/notifications/notification_ui_manager_mac.mm

Issue 1618713003: Use the alternate notification UI for Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f5fdf4a104605deda95e693d3c4c28935a558ca8 100644
--- a/chrome/browser/notifications/notification_ui_manager_mac.mm
+++ b/chrome/browser/notifications/notification_ui_manager_mac.mm
@@ -119,10 +119,11 @@ 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"];
}
// Tag
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698