Chromium Code Reviews| Index: chrome/browser/ui/views/message_center/web_notification_tray.cc |
| diff --git a/chrome/browser/ui/views/message_center/web_notification_tray.cc b/chrome/browser/ui/views/message_center/web_notification_tray.cc |
| index 473468cffe7f5c5049a5c9f91c0c34dd731ab459..8b61c4369c0206f692cd11441e0ae937c098c72d 100644 |
| --- a/chrome/browser/ui/views/message_center/web_notification_tray.cc |
| +++ b/chrome/browser/ui/views/message_center/web_notification_tray.cc |
| @@ -276,6 +276,13 @@ void WebNotificationTray::UpdateStatusIcon() { |
| tool_tip = l10n_util::GetStringUTF16(IDS_MESSAGE_CENTER_TOOLTIP); |
| } |
| + int visible_notifications = |
| + message_center()->GetVisibleNotifications().size(); |
| + if (visible_notifications == 0) { |
|
Jun Mukai
2014/08/11 19:13:40
Why not simply
if (message_center()->GetVisibleNot
dewittj
2014/08/11 19:51:24
Done.
|
| + DestroyStatusIcon(); |
| + return; |
| + } |
| + |
| gfx::ImageSkia* icon_image = GetIcon( |
| unread_notifications, |
| message_center()->IsQuietMode()); |