| Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
|
| diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
|
| index e53f4f7c588fb04098f747414d06cf009732333a..784793d405128490f90150fae49eb4125596376d 100644
|
| --- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
|
| +++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
|
| @@ -49,7 +49,6 @@ import org.chromium.content.browser.ContentViewClient;
|
| import org.chromium.content.browser.ContentViewCore;
|
| import org.chromium.content.browser.ContentViewStatics;
|
| import org.chromium.content.browser.SmartClipProvider;
|
| -import org.chromium.content.browser.WebContentsObserver;
|
| import org.chromium.content.common.CleanupReference;
|
| import org.chromium.content_public.browser.GestureStateListener;
|
| import org.chromium.content_public.browser.JavaScriptCallback;
|
| @@ -57,6 +56,7 @@ import org.chromium.content_public.browser.LoadUrlParams;
|
| import org.chromium.content_public.browser.NavigationController;
|
| import org.chromium.content_public.browser.NavigationHistory;
|
| import org.chromium.content_public.browser.WebContents;
|
| +import org.chromium.content_public.browser.WebContentsObserver;
|
| import org.chromium.content_public.browser.navigation_controller.LoadURLType;
|
| import org.chromium.content_public.browser.navigation_controller.UserAgentOverrideOption;
|
| import org.chromium.content_public.common.Referrer;
|
| @@ -843,7 +843,7 @@ public class AwContents implements SmartClipProvider,
|
|
|
| private void installWebContentsObserver() {
|
| if (mWebContentsObserver != null) {
|
| - mWebContentsObserver.detachFromWebContents();
|
| + mWebContentsObserver.destroy();
|
| }
|
| mWebContentsObserver = new AwWebContentsObserver(mWebContents, mContentsClient);
|
| }
|
| @@ -951,7 +951,7 @@ public class AwContents implements SmartClipProvider,
|
| if (mCleanupReference != null) {
|
| assert mNativeAwContents != 0;
|
|
|
| - mWebContentsObserver.detachFromWebContents();
|
| + mWebContentsObserver.destroy();
|
| mWebContentsObserver = null;
|
| mContentViewCore.destroy();
|
| mContentViewCore = null;
|
|
|