Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
index cec446b220d6bd5dd2d4da9bc14d4e3b43cf8382..f2d7ed07a47d8278ada27ca7d9a844f8ffec6e1a 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
@@ -1375,9 +1375,14 @@ import java.util.Map; |
public void evaluateJavaScript( |
String script, JavaScriptCallback callback) throws IllegalStateException { |
checkIsAlive(); |
- nativeEvaluateJavaScript(mNativeContentViewCore, script, callback); |
+ nativeEvaluateJavaScript(mNativeContentViewCore, script, callback, false); |
} |
+ public void evaluateJavaScriptEvenIfNotYetNavigated( |
+ String script, JavaScriptCallback callback) throws IllegalStateException { |
+ checkIsAlive(); |
+ nativeEvaluateJavaScript(mNativeContentViewCore, script, callback, true); |
+ } |
/** |
* This method should be called when the containing activity is paused. |
*/ |
@@ -3122,7 +3127,7 @@ import java.util.Map; |
private native void nativeClearHistory(int nativeContentViewCoreImpl); |
private native void nativeEvaluateJavaScript(int nativeContentViewCoreImpl, |
- String script, JavaScriptCallback callback); |
+ String script, JavaScriptCallback callback, boolean startRenderer); |
private native int nativeGetNativeImeAdapter(int nativeContentViewCoreImpl); |