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 6b65a9c57744e56b36950cd776a7b47a5cea18d7..4132a2b9443092a2e106704dd83e674b62d899d4 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. |
*/ |
@@ -3121,7 +3126,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); |