Index: chrome/android/javatests/src/org/chromium/chrome/browser/OSKOverscrollTest.java |
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/OSKOverscrollTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/OSKOverscrollTest.java |
index a5f0706b07fd4655ba8f315292b5133d9e49a292..5192e81431014153c4aa3eaa42d5d83a08ee9d6b 100644 |
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/OSKOverscrollTest.java |
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/OSKOverscrollTest.java |
@@ -151,7 +151,8 @@ public class OSKOverscrollTest extends ChromeActivityTestCaseBase<ChromeActivity |
// Verify that the size of the viewport before the OSK show is equal to the size of |
// the viewport after the OSK show plus the size of the keyboard. |
int viewportHeightAfterCss = getViewportHeight(webContentsRef.get()); |
- int keyboardHeight = getActivity().getActivityTab().getSystemWindowInsetBottom(); |
+ int keyboardHeight = |
+ viewCoreRef.get().getContentViewClient().getSystemWindowInsetBottom(); |
int priorHeight = (int) (viewportHeightBeforeCss * cssToDevicePixFactor); |
int afterHeightPlusKeyboard = |