| 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 40661f1caf9c7d53fcc92e2032619dec8ccb6767..d764bd6a370cdc36fbe192a225a90f3ab445d552 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
|
| @@ -607,7 +607,8 @@ public class ContentViewCore
|
| };
|
|
|
| mNativeContentViewCore = nativeInit(
|
| - nativeWebContents, viewAndroidNativePointer, windowNativePointer);
|
| + nativeWebContents, viewAndroidNativePointer, windowNativePointer,
|
| + mRetainedJavaScriptObjects);
|
| mWebContents = nativeGetWebContentsAndroid(mNativeContentViewCore);
|
| mContentSettings = new ContentSettings(this, mNativeContentViewCore);
|
| initializeContainerView(internalDispatcher);
|
| @@ -2679,8 +2680,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);
|
| }
|
| }
|
|
|
| @@ -3059,7 +3059,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() {
|
| @@ -3213,7 +3213,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);
|
|
|