| 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 b3ac7613a9e1d90c3d7a49b5a1f5d1ef8b214361..07686d359bd112619ff1902f805fb66a1783f603 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
|
| @@ -710,7 +710,8 @@ public class ContentViewCore
|
| };
|
|
|
| mNativeContentViewCore = nativeInit(
|
| - nativeWebContents, viewAndroidNativePointer, windowNativePointer);
|
| + nativeWebContents, viewAndroidNativePointer, windowNativePointer,
|
| + mRetainedJavaScriptObjects);
|
| mWebContents = nativeGetWebContentsAndroid(mNativeContentViewCore);
|
| mContentSettings = new ContentSettings(this, mNativeContentViewCore);
|
| initializeContainerView(internalDispatcher);
|
| @@ -2756,8 +2757,7 @@ public class ContentViewCore
|
| Class<? extends Annotation> requiredAnnotation) {
|
| if (mNativeContentViewCore != 0 && object != null) {
|
| mJavaScriptInterfaces.put(name, object);
|
| - nativeAddJavascriptInterface(mNativeContentViewCore, object, name, requiredAnnotation,
|
| - mRetainedJavaScriptObjects);
|
| + nativeAddJavascriptInterface(mNativeContentViewCore, object, name, requiredAnnotation);
|
| }
|
| }
|
|
|
| @@ -3148,7 +3148,7 @@ public class ContentViewCore
|
| }
|
|
|
| private native long nativeInit(long webContentsPtr,
|
| - long viewAndroidPtr, long windowAndroidPtr);
|
| + long viewAndroidPtr, long windowAndroidPtr, HashSet<Object> retainedObjectSet);
|
|
|
| @CalledByNative
|
| private ContentVideoViewClient getContentVideoViewClient() {
|
| @@ -3302,7 +3302,7 @@ public class ContentViewCore
|
| long nativeContentViewCoreImpl, boolean allow);
|
|
|
| private native void nativeAddJavascriptInterface(long nativeContentViewCoreImpl, Object object,
|
| - String name, Class requiredAnnotation, HashSet<Object> retainedObjectSet);
|
| + String name, Class requiredAnnotation);
|
|
|
| private native void nativeRemoveJavascriptInterface(long nativeContentViewCoreImpl,
|
| String name);
|
|
|