| Index: ash/system/chromeos/rotation/tray_rotation_lock.cc
|
| diff --git a/ash/system/chromeos/rotation/tray_rotation_lock.cc b/ash/system/chromeos/rotation/tray_rotation_lock.cc
|
| index 9b1ba257c53890b5c555baadcab43412c21fce5b..58edb6979e9d1e48b071fb2478e0a4aaeeab1cb0 100644
|
| --- a/ash/system/chromeos/rotation/tray_rotation_lock.cc
|
| +++ b/ash/system/chromeos/rotation/tray_rotation_lock.cc
|
| @@ -203,9 +203,9 @@ bool TrayRotationLock::ShouldBeVisible() {
|
| }
|
|
|
| bool TrayRotationLock::OnPrimaryDisplay() const {
|
| - gfx::NativeView native_view = system_tray()->GetWidget()->GetNativeView();
|
| + gfx::NativeView native_window = system_tray()->GetWidget()->GetNativeWindow();
|
| display::Display parent_display =
|
| - display::Screen::GetScreen()->GetDisplayNearestWindow(native_view);
|
| + display::Screen::GetScreen()->GetDisplayNearestWindow(native_window);
|
| return parent_display.IsInternal();
|
| }
|
|
|
|
|