Index: android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java |
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java b/android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java |
index 9eca86bde7dca41a0c8f5e0de371cd0aa3708ab9..8a89fae977d4ef34b056f00503ea1089f35801f4 100644 |
--- a/android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java |
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java |
@@ -47,7 +47,7 @@ public class JSUtils { |
testCase.getInstrumentation().runOnMainSync(new Runnable() { |
@Override |
public void run() { |
- awContents.getContentViewCore().evaluateJavaScript( |
+ awContents.getWebContents().evaluateJavaScript( |
"var evObj = document.createEvent('Events'); " + |
"evObj.initEvent('click', true, false); " + |
"document.getElementById('" + linkId + "').dispatchEvent(evObj);" + |
@@ -66,7 +66,7 @@ public class JSUtils { |
@Override |
public void run() { |
onEvaluateJavaScriptResultHelper.evaluateJavaScript( |
- awContents.getContentViewCore(), code); |
+ awContents.getWebContents(), code); |
} |
}); |
onEvaluateJavaScriptResultHelper.waitUntilHasValue(); |