Index: ash/system/web_notification/web_notification_tray.cc |
diff --git a/ash/system/web_notification/web_notification_tray.cc b/ash/system/web_notification/web_notification_tray.cc |
index 09e615e0a3ad5200e042539fcefd5ae975d74dcc..b0b75d87dfca2f01d69f3610cd4ed6a685bcfe1b 100644 |
--- a/ash/system/web_notification/web_notification_tray.cc |
+++ b/ash/system/web_notification/web_notification_tray.cc |
@@ -416,6 +416,9 @@ bool WebNotificationTray::ShowPopups() { |
} |
void WebNotificationTray::HidePopups() { |
+ DCHECK(popup_collection_.get()); |
+ |
+ popup_collection_->MarkAllPopupsShown(); |
popup_collection_.reset(); |
work_area_observer_->StopObserving(); |
} |