Index: content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java |
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java b/content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java |
index 870536f6991df8c0b4910fcedfb39d782960611c..455fe00d1f0122d309dd79d5476e43ac4fdbdb25 100644 |
--- a/content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java |
+++ b/content/public/android/javatests/src/org/chromium/content/browser/ContentDetectionTestBase.java |
@@ -67,7 +67,7 @@ public class ContentDetectionTestBase extends ContentShellTestBase { |
callbackHelperContainer.getOnStartContentIntentHelper(); |
int currentCallCount = onStartContentIntentHelper.getCallCount(); |
- DOMUtils.scrollNodeIntoView(getContentViewCore(), id); |
+ DOMUtils.scrollNodeIntoView(getWebContents(), id); |
DOMUtils.clickNode(this, getContentViewCore(), id); |
onStartContentIntentHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_SECONDS, |
@@ -88,7 +88,7 @@ public class ContentDetectionTestBase extends ContentShellTestBase { |
callbackHelperContainer.getOnPageFinishedHelper(); |
int currentCallCount = onPageFinishedHelper.getCallCount(); |
- DOMUtils.scrollNodeIntoView(getContentViewCore(), id); |
+ DOMUtils.scrollNodeIntoView(getWebContents(), id); |
DOMUtils.clickNode(this, getContentViewCore(), id); |
onPageFinishedHelper.waitForCallback(currentCallCount, 1, WAIT_TIMEOUT_SECONDS, |