| 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 b5b13f909977fecb8453ac92ed73afebbc4911c2..7d24a2f7520ccb6b4e7a382eba3304411959ec41 100644
|
| --- a/ui/message_center/views/message_popup_collection.cc
|
| +++ b/ui/message_center/views/message_popup_collection.cc
|
| @@ -318,10 +318,6 @@ void MessagePopupCollection::OnNotificationUpdated(
|
| DoUpdateIfPossible();
|
| }
|
|
|
| -void MessagePopupCollection::SetWorkAreaForTest(const gfx::Rect& work_area) {
|
| - work_area_ = work_area;
|
| -}
|
| -
|
| ToastContentsView* MessagePopupCollection::FindToast(
|
| const std::string& notification_id) {
|
| for (Toasts::iterator iter = toasts_.begin(); iter != toasts_.end(); ++iter) {
|
| @@ -369,15 +365,20 @@ void MessagePopupCollection::DoUpdateIfPossible() {
|
| run_loop_for_test_->Quit();
|
| }
|
|
|
| +void MessagePopupCollection::SetWorkArea(const gfx::Rect& work_area) {
|
| + if (work_area_ == work_area)
|
| + return;
|
| +
|
| + work_area_ = work_area;
|
| + RepositionWidgets();
|
| +}
|
| +
|
| void MessagePopupCollection::OnDisplayBoundsChanged(
|
| const gfx::Display& display) {
|
| if (display.id() != display_id_)
|
| return;
|
| - if (work_area_ == display.work_area())
|
| - return;
|
|
|
| - work_area_ = display.work_area();
|
| - RepositionWidgets();
|
| + SetWorkArea(display.work_area());
|
| }
|
|
|
| void MessagePopupCollection::OnDisplayAdded(const gfx::Display& new_display) {
|
|
|