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

Issue 1052223008: Shutdown RenderWidgetHost owned by RenderFrameHost when destroying the RenderFrameHost. (Closed)

Created:
5 years, 8 months ago by lfg
Modified:
5 years, 7 months ago
Reviewers:
kenrb, nasko
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Shutdown RenderWidgetHost owned by RenderFrameHost when destroying the RenderFrameHost. This is needed because the RenderThread in the renderer process owns a reference to the RenderWidget, and that reference is only released when the RenderWidgetHost sends ViewMsg_Close, which happens on RenderWidgetHost::Shutdown. BUG=464764 Committed: https://crrev.com/6a3da17d3e84b2a1150bd3fe301586b9960b5d44 Cr-Commit-Position: refs/heads/master@{#327331}

Patch Set 1 #

Total comments: 2

Patch Set 2 : addressing Ken's comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -18 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 5 chunks +9 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 13 (4 generated)
lfg
Hi Ken, please take a look.
5 years, 8 months ago (2015-04-22 19:36:29 UTC) #2
kenrb
I see that this is necessary, and overall the change looks fine, but am I ...
5 years, 8 months ago (2015-04-23 15:56:27 UTC) #3
lfg
On 2015/04/23 15:56:27, kenrb wrote: > I see that this is necessary, and overall the ...
5 years, 8 months ago (2015-04-23 19:06:23 UTC) #4
kenrb
Okay. lgtm You might try Nasko for owner review. https://codereview.chromium.org/1052223008/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1052223008/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode218 content/browser/frame_host/render_frame_host_impl.cc:218: ...
5 years, 8 months ago (2015-04-23 21:39:18 UTC) #5
lfg
+nasko: please take a look. https://codereview.chromium.org/1052223008/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/1052223008/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode218 content/browser/frame_host/render_frame_host_impl.cc:218: render_widget_host_->Shutdown(); On 2015/04/23 21:39:18, ...
5 years, 8 months ago (2015-04-23 22:19:54 UTC) #7
nasko
LGTM
5 years, 8 months ago (2015-04-28 00:02:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1052223008/20001
5 years, 7 months ago (2015-04-28 17:21:57 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-04-28 18:23:39 UTC) #12
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 18:25:46 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6a3da17d3e84b2a1150bd3fe301586b9960b5d44
Cr-Commit-Position: refs/heads/master@{#327331}

Powered by Google App Engine
This is Rietveld 408576698