Index: ui/message_center/views/message_popup_collection.cc |
diff --git a/ui/message_center/views/message_popup_collection.cc b/ui/message_center/views/message_popup_collection.cc |
index f5103a96994b0081e51cfdb4b0bef5ebd1bdb17a..af02d5a8878c132fd182e9bd65e5c9b76fceba39 100644 |
--- a/ui/message_center/views/message_popup_collection.cc |
+++ b/ui/message_center/views/message_popup_collection.cc |
@@ -558,14 +558,6 @@ void MessagePopupCollection::SetDisplayInfo(const gfx::Rect& work_area, |
RepositionWidgets(); |
} |
-void MessagePopupCollection::OnDisplayBoundsChanged( |
- const gfx::Display& display) { |
- if (display.id() != display_id_) |
- return; |
- |
- SetDisplayInfo(display.work_area(), display.bounds()); |
-} |
- |
void MessagePopupCollection::OnDisplayAdded(const gfx::Display& new_display) { |
} |
@@ -577,6 +569,15 @@ void MessagePopupCollection::OnDisplayRemoved(const gfx::Display& old_display) { |
} |
} |
+void MessagePopupCollection::OnDisplayMetricsChanged( |
+ const gfx::Display& display, DisplayObserver::MetricsType metrics) { |
+ if (display.id() != display_id_) |
+ return; |
+ |
+ if (metrics & DISPLAY_METRICS_BOUNDS || metrics & DISPLAY_METRICS_WORKAREA) |
+ SetDisplayInfo(display.work_area(), display.bounds()); |
+} |
+ |
views::Widget* MessagePopupCollection::GetWidgetForTest(const std::string& id) |
const { |
for (Toasts::const_iterator iter = toasts_.begin(); iter != toasts_.end(); |