diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/ui/views/message_center/web_notification_tray.cc | 8 |
1 files changed, 1 insertions, 7 deletions
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 5f25c9d..f3371d9 100644 --- a/chrome/browser/ui/views/message_center/web_notification_tray.cc +++ b/chrome/browser/ui/views/message_center/web_notification_tray.cc @@ -121,7 +121,7 @@ WebNotificationTray::WebNotificationTray() should_update_tray_content_(true) { message_center_tray_.reset( new MessageCenterTray(this, g_browser_process->message_center())); - UpdateStatusIcon(); + OnMessageCenterTrayChanged(); } WebNotificationTray::~WebNotificationTray() { @@ -199,12 +199,6 @@ void WebNotificationTray::UpdateStatusIcon() { return; should_update_tray_content_ = false; - int total_notifications = message_center()->NotificationCount(); - if (total_notifications == 0) { - DestroyStatusIcon(); - return; - } - int unread_notifications = message_center()->UnreadNotificationCount(); StatusIcon* status_icon = GetStatusIcon(); if (!status_icon) |