| 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 94e138422cba77b351aeef4ea3736a9dea1dc648..76e6abe367cd634291b74d7ffb05f811ce8bc4df 100644
|
| --- a/ui/message_center/message_simple_view.cc
|
| +++ b/ui/message_center/message_simple_view.cc
|
| @@ -22,7 +22,7 @@ const SkColor kNotificationReadColor = SkColorSetRGB(0xfa, 0xfa, 0xfa);
|
|
|
| MessageSimpleView::MessageSimpleView(
|
| NotificationList::Delegate* list_delegate,
|
| - const Notification& notification)
|
| + Notification* notification)
|
| : MessageView(list_delegate, notification) {
|
| views::ImageButton* close = new views::ImageButton(this);
|
| close->SetImage(
|
| @@ -63,16 +63,16 @@ void MessageSimpleView::SetUpView() {
|
| views::ImageView* icon = new views::ImageView;
|
| icon->SetImageSize(
|
| gfx::Size(kWebNotificationIconSize, kWebNotificationIconSize));
|
| - icon->SetImage(notification().primary_icon);
|
| + icon->SetImage(notification()->primary_icon());
|
|
|
| - views::Label* title = new views::Label(notification().title);
|
| + views::Label* title = new views::Label(notification()->title());
|
| title->SetHorizontalAlignment(gfx::ALIGN_LEFT);
|
| title->SetFont(title->font().DeriveFont(0, gfx::Font::BOLD));
|
| - views::Label* message = new views::Label(notification().message);
|
| + views::Label* message = new views::Label(notification()->message());
|
| message->SetHorizontalAlignment(gfx::ALIGN_LEFT);
|
| message->SetMultiLine(true);
|
|
|
| - SkColor bg_color = notification().is_read ?
|
| + SkColor bg_color = notification()->is_read() ?
|
| kNotificationReadColor : kNotificationColor;
|
| content_view_.reset(new views::View);
|
| content_view_->set_background(
|
|
|