Index: ui/message_center/message_center_tray.cc |
diff --git a/ui/message_center/message_center_tray.cc b/ui/message_center/message_center_tray.cc |
index 7f74a1eea2c282eb4ce141fecc7e65cfd69c3017..46438cc9d6c8e7f56b1e62aa08fceed8bda7afb4 100644 |
--- a/ui/message_center/message_center_tray.cc |
+++ b/ui/message_center/message_center_tray.cc |
@@ -72,7 +72,6 @@ void MessageCenterTray::ShowPopupBubble() { |
return; |
if (popups_visible_) { |
- delegate_->UpdatePopups(); |
NotifyMessageCenterTrayChanged(); |
return; |
} |
@@ -153,14 +152,11 @@ void MessageCenterTray::OnMessageCenterChanged() { |
if (message_center_->NotificationCount() == 0) |
HideMessageCenterBubble(); |
} |
- if (popups_visible_) { |
- if (message_center_->HasPopupNotifications()) |
- delegate_->UpdatePopups(); |
- else |
- HidePopupBubble(); |
- } else if (message_center_->HasPopupNotifications()) { |
+ |
+ if (popups_visible_ && !message_center_->HasPopupNotifications()) |
+ HidePopupBubble(); |
+ else if (message_center_->HasPopupNotifications()) |
ShowPopupBubble(); |
- } |
NotifyMessageCenterTrayChanged(); |
} |