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

Unified Diff: ui/message_center/views/notification_view.cc

Issue 149433005: Adds a small icon to notifications, and connects it to synced notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits Created 6 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
Index: ui/message_center/views/notification_view.cc
diff --git a/ui/message_center/views/notification_view.cc b/ui/message_center/views/notification_view.cc
index 7b258ab8184a9bb764906387b610b42a2b537cc5..028d9d34512062477353a33378e6a3f5b7a2a8d1 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -305,6 +305,7 @@ NotificationView::NotificationView(MessageCenterController* controller,
: MessageView(this,
notification.id(),
notification.notifier_id(),
+ notification.small_image().AsImageSkia(),
notification.display_source()),
controller_(controller),
clickable_(notification.clickable()),
@@ -465,6 +466,7 @@ NotificationView::NotificationView(MessageCenterController* controller,
AddChildView(top_view_);
AddChildView(icon_view_);
AddChildView(bottom_view_);
+ AddChildView(small_image());
AddChildView(close_button());
AddChildView(expand_button_);
set_accessible_name(JoinString(accessible_lines, '\n'));
« chrome/browser/notifications/notification.h ('K') | « ui/message_center/views/message_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698