| Index: ui/message_center/views/notification_button.cc
|
| diff --git a/ui/message_center/views/notification_button.cc b/ui/message_center/views/notification_button.cc
|
| index fa38633ced5f583be2c588ce4d50ccacb16415a3..75219e8d3dc6e7a47be18e9e55160b139d725225 100644
|
| --- a/ui/message_center/views/notification_button.cc
|
| +++ b/ui/message_center/views/notification_button.cc
|
| @@ -98,6 +98,14 @@ void NotificationButton::OnBlur() {
|
| SchedulePaint();
|
| }
|
|
|
| +void NotificationButton::ViewHierarchyChanged(
|
| + const ViewHierarchyChangedDetails& details) {
|
| + // We disable view hierarchy change detection in the parent
|
| + // because it resets the hoverstate, which we do not want
|
| + // when we update the view to contain a new label or image.
|
| + views::View::ViewHierarchyChanged(details);
|
| +}
|
| +
|
| void NotificationButton::StateChanged() {
|
| if (state() == STATE_HOVERED || state() == STATE_PRESSED) {
|
| set_background(views::Background::CreateSolidBackground(
|
|
|