| Index: ui/message_center/message_simple_view.cc
|
| diff --git a/ui/message_center/message_simple_view.cc b/ui/message_center/message_simple_view.cc
|
| index 8f85b458ae119af6a4a91264ecf79f2fb5401ca5..1d01601ade6eeff1a390660614e7ec25974dec21 100644
|
| --- a/ui/message_center/message_simple_view.cc
|
| +++ b/ui/message_center/message_simple_view.cc
|
| @@ -7,7 +7,6 @@
|
| #include "grit/ui_resources.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| #include "ui/message_center/notification.h"
|
| -#include "ui/message_center/notification_list.h"
|
| #include "ui/views/background.h"
|
| #include "ui/views/controls/button/image_button.h"
|
| #include "ui/views/controls/image_view.h"
|
| @@ -20,10 +19,9 @@ namespace message_center {
|
| const SkColor kNotificationColor = SkColorSetRGB(0xfe, 0xfe, 0xfe);
|
| const SkColor kNotificationReadColor = SkColorSetRGB(0xfa, 0xfa, 0xfa);
|
|
|
| -MessageSimpleView::MessageSimpleView(
|
| - NotificationList::Delegate* list_delegate,
|
| - const Notification& notification)
|
| - : MessageView(list_delegate, notification) {
|
| +MessageSimpleView::MessageSimpleView(const Notification& notification,
|
| + NotificationChangeObserver* observer)
|
| + : MessageView(notification, observer, false) {
|
| views::ImageButton* close = new views::ImageButton(this);
|
| close->SetImage(
|
| views::CustomButton::STATE_NORMAL,
|
| @@ -64,7 +62,7 @@ void MessageSimpleView::SetUpView(const Notification& notification) {
|
| views::ImageView* icon = new views::ImageView;
|
| icon->SetImageSize(
|
| gfx::Size(kWebNotificationIconSize, kWebNotificationIconSize));
|
| - icon->SetImage(notification.primary_icon());
|
| + icon->SetImage(notification.icon());
|
|
|
| views::Label* title = new views::Label(notification.title());
|
| title->SetHorizontalAlignment(gfx::ALIGN_LEFT);
|
|
|