Index: content/public/android/java/src/org/chromium/content/browser/accessibility/AccessibilityInjector.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/accessibility/AccessibilityInjector.java b/content/public/android/java/src/org/chromium/content/browser/accessibility/AccessibilityInjector.java |
index e5dec6e1229467c84685c349b294258c785871e2..78535b42a125cc60fd3995f4cc75bc1aba8b00b3 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/accessibility/AccessibilityInjector.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/accessibility/AccessibilityInjector.java |
@@ -138,7 +138,7 @@ public class AccessibilityInjector extends WebContentsObserverAndroid { |
if (mContentViewCore.isDeviceAccessibilityScriptInjectionEnabled() && |
js != null && mContentViewCore.isAlive()) { |
addOrRemoveAccessibilityApisIfNecessary(); |
- mContentViewCore.evaluateJavaScript(js, null); |
+ mContentViewCore.getWebContents().evaluateJavaScript(js, null); |
mInjectedScriptEnabled = true; |
mScriptInjected = true; |
} |
@@ -199,7 +199,7 @@ public class AccessibilityInjector extends WebContentsObserverAndroid { |
if (mContentViewCore.isAlive()) { |
String js = String.format(TOGGLE_CHROME_VOX_JAVASCRIPT, Boolean.toString( |
mInjectedScriptEnabled)); |
- mContentViewCore.evaluateJavaScript(js, null); |
+ mContentViewCore.getWebContents().evaluateJavaScript(js, null); |
if (!mInjectedScriptEnabled) { |
// Stop any TTS/Vibration right now. |