Index: content/public/android/java/src/org/chromium/content/browser/ContentView.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentView.java b/content/public/android/java/src/org/chromium/content/browser/ContentView.java |
index 0715656da8833252bd530361b5ccd668e837945e..eebd79b6237667c02cfe71ee003cdd594cd6eb7e 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/ContentView.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentView.java |
@@ -416,17 +416,11 @@ public class ContentView extends FrameLayout implements ContentViewCore.Internal |
/** |
* Injects the passed JavaScript code in the current page and evaluates it. |
- * Once evaluated, an asynchronous call to |
- * ContentViewClient.onJavaScriptEvaluationResult is made. Used in automation |
- * tests. |
* |
- * @return an id that is passed along in the asynchronous onJavaScriptEvaluationResult callback |
* @throws IllegalStateException If the ContentView has been destroyed. |
- * |
- * TODO(nileshagrawal): Remove this method from the public interface. |
*/ |
- public int evaluateJavaScript(String script) throws IllegalStateException { |
- return mContentViewCore.evaluateJavaScript(script); |
+ public void evaluateJavaScript(String script) throws IllegalStateException { |
+ mContentViewCore.evaluateJavaScript(script, null); |
} |
/** |