| 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 94e4b76a9ec6543ebd9f26654f9dd68f0cddb57b..d07eaead2f29736fcb3f122a85c05758a8556eca 100644
|
| --- a/content/browser/android/content_view_core_impl.cc
|
| +++ b/content/browser/android/content_view_core_impl.cc
|
| @@ -218,9 +218,6 @@ void ContentViewCoreImpl::InitWebContents() {
|
| this, NOTIFICATION_RENDER_VIEW_HOST_CHANGED,
|
| 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_));
|
|
|
| @@ -257,24 +254,6 @@ void ContentViewCoreImpl::Observe(int type,
|
| SetFocusInternal(HasFocus());
|
| break;
|
| }
|
| - case NOTIFICATION_RENDERER_PROCESS_CREATED: {
|
| - // Notify the Java side of the current renderer process.
|
| - RenderProcessHost* source_process_host =
|
| - Source<RenderProcessHost>(source).ptr();
|
| - RenderProcessHost* current_process_host =
|
| - web_contents_->GetRenderViewHost()->GetProcess();
|
| -
|
| - if (source_process_host == current_process_host) {
|
| - int pid = GetRenderProcessIdFromRenderViewHost(
|
| - web_contents_->GetRenderViewHost());
|
| - JNIEnv* env = AttachCurrentThread();
|
| - ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
|
| - if (!obj.is_null()) {
|
| - Java_ContentViewCore_onRenderProcessSwap(env, obj.obj(), 0, pid);
|
| - }
|
| - }
|
| - break;
|
| - }
|
| case NOTIFICATION_WEB_CONTENTS_CONNECTED: {
|
| JNIEnv* env = AttachCurrentThread();
|
| ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
|
|
|