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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/accessibility/JellyBeanAccessibilityInjector.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: content/public/android/java/src/org/chromium/content/browser/accessibility/JellyBeanAccessibilityInjector.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/accessibility/JellyBeanAccessibilityInjector.java b/content/public/android/java/src/org/chromium/content/browser/accessibility/JellyBeanAccessibilityInjector.java
index 363ebfeb6c17f559e842f0ea6a72f2b5e28afd37..16dd8133f987af896b478fa971b70a8572cfb8d0 100644
--- a/content/public/android/java/src/org/chromium/content/browser/accessibility/JellyBeanAccessibilityInjector.java
+++ b/content/public/android/java/src/org/chromium/content/browser/accessibility/JellyBeanAccessibilityInjector.java
@@ -185,7 +185,7 @@ class JellyBeanAccessibilityInjector extends AccessibilityInjector {
final int resultId = mResultIdCounter.getAndIncrement();
final String js = String.format(Locale.US, JAVASCRIPT_ACTION_TEMPLATE, code,
mInterfaceName, resultId);
- contentView.evaluateJavaScript(js, null);
+ contentView.getWebContents().evaluateJavaScript(js, null);
return getResultAndClear(resultId);
}

Powered by Google App Engine
This is Rietveld 408576698