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

Issue 18167004: Iterate over listeners when sending process died notification. (Closed)

Created:
7 years, 5 months ago by nasko
Modified:
7 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Iterate over listeners when sending process died notification. The refactor in http://crrev.com/207913 moved the RenderWidgetHost iterator outside of RenderProcessHost. Since it is now a vector of pointers, which is not updated when RenderWidgetHosts are removed, iterating through those causes us to access already freed objects. We should be iterating over all listeners and notifying those. In addition, it will fix the case where we have non-RWH listeners, which also need to be cleaned up. BUG=255524 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209772

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixes. #

Total comments: 2

Patch Set 3 : Added DISALLOW_COPY_AND_ASSIGN() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -6 lines) Patch
M chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc View 1 2 3 chunks +66 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 1 chunk +5 lines, -6 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
nasko
Hey Charlie, Can you review this change for me? Thanks, Nasko
7 years, 5 months ago (2013-06-28 22:35:44 UTC) #1
Charlie Reis
This looks good, but the test is failing on Mac. Any ideas? And just to ...
7 years, 5 months ago (2013-07-01 17:16:42 UTC) #2
nasko
Fixed the Mac failure. There is no WINDOW_CLOSED notification there :(. Changed it to use ...
7 years, 5 months ago (2013-07-01 23:08:42 UTC) #3
nasko
Adding jochen@ for OWNERS review of chrome/.
7 years, 5 months ago (2013-07-01 23:57:49 UTC) #4
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/18167004/diff/11001/chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc File chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc (right): https://codereview.chromium.org/18167004/diff/11001/chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc#newcode382 chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc:382: }; nit. DISALLOW_COPY_AND_ASSIGN()
7 years, 5 months ago (2013-07-02 07:56:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nasko@chromium.org/18167004/23001
7 years, 5 months ago (2013-07-02 14:38:48 UTC) #6
nasko
https://codereview.chromium.org/18167004/diff/11001/chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc File chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc (right): https://codereview.chromium.org/18167004/diff/11001/chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc#newcode382 chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc:382: }; On 2013/07/02 07:56:46, jochen wrote: > nit. DISALLOW_COPY_AND_ASSIGN() ...
7 years, 5 months ago (2013-07-02 14:57:29 UTC) #7
Charlie Reis
LGTM.
7 years, 5 months ago (2013-07-02 16:29:26 UTC) #8
commit-bot: I haz the power
7 years, 5 months ago (2013-07-02 21:01:13 UTC) #9
Message was sent while issue was closed.
Change committed as 209772

Powered by Google App Engine
This is Rietveld 408576698