Index: ui/android/dummy_screen_android.cc |
diff --git a/ui/android/dummy_screen_android.cc b/ui/android/dummy_screen_android.cc |
index 28520b8abb9a8e8ba0fa15f9303c5acc11cc9644..7e8e2db49db313a05d63fd4b1483209b772d572a 100644 |
--- a/ui/android/dummy_screen_android.cc |
+++ b/ui/android/dummy_screen_android.cc |
@@ -39,7 +39,11 @@ class DummyScreenAndroid : public display::Screen { |
return displays_; |
} |
- Display GetDisplayNearestWindow(gfx::NativeView view) const override { |
+ Display GetDisplayNearestWindow(gfx::NativeWindow window) const override { |
+ return GetPrimaryDisplay(); |
+ } |
+ |
+ Display GetDisplayNearestView(gfx::NativeView view) const override { |
return GetPrimaryDisplay(); |
} |