| 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 68d1e73fd46ae19590523186f2a9b6e295321b06..89bcd26a027ca885d1e82a41db194486ab1d2c01 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
|
| @@ -1373,9 +1373,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.
|
| */
|
| @@ -3127,7 +3132,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);
|
|
|
|
|