Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index 606343d374fbdbd675a8ba39bcab175fb99c9d76..fbbf0d87376343cf07e5aa72e734dfbe31165e81 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -219,16 +219,13 @@ void ContentViewCoreImpl::InitWebContents() { |
DCHECK(web_contents_); |
notification_registrar_.Add( |
this, NOTIFICATION_RENDER_VIEW_HOST_CHANGED, |
- Source<NavigationController>(&web_contents_->GetController())); |
+ Source<WebContents>(web_contents_)); |
notification_registrar_.Add( |
this, NOTIFICATION_RENDERER_PROCESS_CREATED, |
content::NotificationService::AllBrowserContextsAndSources()); |
notification_registrar_.Add( |
this, NOTIFICATION_WEB_CONTENTS_CONNECTED, |
Source<WebContents>(web_contents_)); |
- notification_registrar_.Add( |
- this, NOTIFICATION_WEB_CONTENTS_SWAPPED, |
- Source<WebContents>(web_contents_)); |
static_cast<WebContentsViewAndroid*>(web_contents_->GetView())-> |
SetContentViewCore(this); |
@@ -289,13 +286,6 @@ void ContentViewCoreImpl::Observe(int type, |
} |
break; |
} |
- case NOTIFICATION_WEB_CONTENTS_SWAPPED: { |
- JNIEnv* env = AttachCurrentThread(); |
- ScopedJavaLocalRef<jobject> obj = java_ref_.get(env); |
- if (!obj.is_null()) { |
- Java_ContentViewCore_onWebContentsSwapped(env, obj.obj()); |
- } |
- } |
} |
} |