| Index: ash/common/system/tray/system_tray.cc
|
| diff --git a/ash/common/system/tray/system_tray.cc b/ash/common/system/tray/system_tray.cc
|
| index 79d76338186a00944900a96e6df48c9155cfeb2b..1ea3a410d798cd30978756609692613c531646f2 100644
|
| --- a/ash/common/system/tray/system_tray.cc
|
| +++ b/ash/common/system/tray/system_tray.cc
|
| @@ -548,10 +548,10 @@ void SystemTray::UpdateWebNotifications() {
|
|
|
| int height = 0;
|
| if (bubble_view) {
|
| - gfx::Rect work_area =
|
| - display::Screen::GetScreen()
|
| - ->GetDisplayNearestWindow(bubble_view->GetWidget()->GetNativeView())
|
| - .work_area();
|
| + gfx::Rect work_area = display::Screen::GetScreen()
|
| + ->GetDisplayNearestWindow(
|
| + bubble_view->GetWidget()->GetNativeWindow())
|
| + .work_area();
|
| height =
|
| std::max(0, work_area.bottom() - bubble_view->GetBoundsInScreen().y());
|
| }
|
| @@ -749,7 +749,7 @@ void SystemTray::RecordSystemMenuMetrics() {
|
|
|
| int work_area_height =
|
| display::Screen::GetScreen()
|
| - ->GetDisplayNearestWindow(bubble_view->GetWidget()->GetNativeView())
|
| + ->GetDisplayNearestWindow(bubble_view->GetWidget()->GetNativeWindow())
|
| .work_area()
|
| .height();
|
| if (work_area_height > 0) {
|
|
|