Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Issue 62203016: Remove a use of NOTIFICATION_RENDERER_PROCESS_CREATED. (Closed)

Created:
7 years, 1 month ago by Avi (use Gerrit)
Modified:
7 years, 1 month ago
Reviewers:
joth, ppi
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Remove a use of NOTIFICATION_RENDERER_PROCESS_CREATED. BUG=170921 TEST=no change

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -21 lines) Patch
M content/browser/android/content_view_core_impl.cc View 2 chunks +0 lines, -21 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Avi (use Gerrit)
I don't understand the use of NOTIFICATION_RENDERER_PROCESS_CREATED here. It's catching the case where: - A ...
7 years, 1 month ago (2013-11-14 00:26:27 UTC) #1
joth
+ppi this notification is mostly relevant to your bindAsHighPriority() work so over to you for ...
7 years, 1 month ago (2013-11-14 01:16:07 UTC) #2
ppi
Thanks, Jonathan! Avi, we listen to these notifications to keep track of the pid of ...
7 years, 1 month ago (2013-11-14 11:27:42 UTC) #3
Avi (use Gerrit)
On 2013/11/14 11:27:42, ppi wrote: > Thanks, Jonathan! > > Avi, we listen to these ...
7 years, 1 month ago (2013-11-21 20:39:55 UTC) #4
Avi (use Gerrit)
7 years, 1 month ago (2013-11-21 21:00:31 UTC) #5
Message was sent while issue was closed.
On 2013/11/14 11:27:42, ppi wrote:
> When a new RenderViewHost is created and we receive the
RENDER_VIEW_HOST_CHANGED
> notification (e.g. upon opening a new tab or hitting "reload" on a crashed
one),
> the renderer pid is not (necessarily?) available, and we (can?) get 0 when
> calling GetRenderProcessIdFromRenderViewHost().

Isn't that what WebContentsObserver::RenderViewReady() is for?

The docs on that call suck, but it's the equivalent of
NOTIFICATION_WEB_CONTENTS_CONNECTED. To quote that documentation:

  // This notification is sent when a render view host has connected to a
  // renderer process.

Plus you _already_ call all the way into the Java code for that
(Java_ContentViewCore_onWebContentsConnected), so the plumbing is there.

I will send you a CL, but further work might be necessary.

Powered by Google App Engine
This is Rietveld 408576698