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

Unified Diff: ui/android/view_android.cc

Issue 2688413007: Add display::GetDisplayNearestView (Closed)
Patch Set: add missing files Created 3 years, 10 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
Index: ui/android/view_android.cc
diff --git a/ui/android/view_android.cc b/ui/android/view_android.cc
index e1716c141bd0ef8a21a42239dded78ab29dfbace..821c507b0af1c91190e4c94c0966a644ca9e3d5b 100644
--- a/ui/android/view_android.cc
+++ b/ui/android/view_android.cc
@@ -143,7 +143,7 @@ ViewAndroid::ScopedAnchorView ViewAndroid::AcquireAnchorView() {
float ViewAndroid::GetDipScale() {
return display::Screen::GetScreen()
- ->GetDisplayNearestWindow(this)
+ ->GetDisplayNearestWindow(GetWindowAndroid())
.device_scale_factor();
}

Powered by Google App Engine
This is Rietveld 408576698