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

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

Issue 18247002: Remove the most obvious dead code from message center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move MessageCenterButtonBar into cc file to hide implementation. Created 7 years, 5 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/views/message_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a8e9213f3ca10dc307a1aa95d6fafa023ebf8f81..0522e751398cb249f58d0f4a41c014ac006031b2 100644
--- a/ui/message_center/views/notification_view.cc
+++ b/ui/message_center/views/notification_view.cc
@@ -20,7 +20,6 @@
#include "ui/message_center/notification.h"
#include "ui/message_center/notification_types.h"
#include "ui/message_center/views/bounded_label.h"
-#include "ui/message_center/views/message_simple_view.h"
#include "ui/native_theme/native_theme.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/image_view.h"
@@ -341,13 +340,6 @@ MessageView* NotificationView::Create(const Notification& notification,
MessageCenterTray* tray,
bool expanded,
bool top_level) {
- // Use MessageSimpleView for simple notifications unless rich style
- // notifications are enabled. This preserves the appearance of notifications
- // created by existing code that uses webkitNotifications.
- if (!IsRichNotificationEnabled() &&
- notification.type() == NOTIFICATION_TYPE_SIMPLE)
- return new MessageSimpleView(notification, message_center);
-
switch (notification.type()) {
case NOTIFICATION_TYPE_BASE_FORMAT:
case NOTIFICATION_TYPE_IMAGE:
@@ -375,9 +367,7 @@ MessageView* NotificationView::Create(const Notification& notification,
return notification_view;
#endif
- if (IsRichNotificationEnabled())
- notification_view->CreateShadowBorder();
-
+ notification_view->CreateShadowBorder();
return notification_view;
}
« no previous file with comments | « 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