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

Unified Diff: ui/message_center/message_view_factory.cc

Issue 11639041: Added support for image notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bug detected by try bots. Created 7 years, 12 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 | « ui/message_center/message_center_constants.cc ('k') | ui/message_center/notification_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/message_view_factory.cc
diff --git a/ui/message_center/message_view_factory.cc b/ui/message_center/message_view_factory.cc
index 903dac9e6a9e61b165d3120a1eab084cc30408ef..8ea7c5198e09f3dabb920027067e084a3240307f 100644
--- a/ui/message_center/message_view_factory.cc
+++ b/ui/message_center/message_view_factory.cc
@@ -20,6 +20,8 @@ MessageView* MessageViewFactory::ViewForNotification(
switch (notification.type) {
case ui::notifications::NOTIFICATION_TYPE_BASE_FORMAT:
return new BaseFormatView(list_delegate, notification);
+ case ui::notifications::NOTIFICATION_TYPE_IMAGE:
+ return new NotificationView(list_delegate, notification);
case ui::notifications::NOTIFICATION_TYPE_MULTIPLE:
return new NotificationView(list_delegate, notification);
case ui::notifications::NOTIFICATION_TYPE_SIMPLE:
« no previous file with comments | « ui/message_center/message_center_constants.cc ('k') | ui/message_center/notification_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698