Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Unified Diff: ash/system/chromeos/rotation/tray_rotation_lock.cc

Issue 2804523002: Fix mistmached |GetDisplayNearest{Window,View}| param type (Closed)
Patch Set: window Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/screen_mus.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « ash/mus/screen_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698