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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/util/JSUtils.java

Issue 572013002: Removing ContentViewCore dependencies from direct WebContents functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased the patch and addressed review comments. Created 6 years, 2 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: 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();

Powered by Google App Engine
This is Rietveld 408576698