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

Issue 740813004: Use StopChildProcess instead of base::KillProcess to kill a renderer process (Closed)

Created:
6 years, 1 month ago by Jaekyun Seok (inactive)
Modified:
6 years ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org, rvargas (doing something else)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Use StopChildProcess instead of base::KillProcess to kill a renderer process base::KillProcess doesn't work on android because a renderer process is running as an isolated process. So we need to use StopChildProcess to kill it. BUG=433068 Committed: https://crrev.com/37e572a3b60109e457a09df566d15c6f96b79210 Cr-Commit-Position: refs/heads/master@{#306931}

Patch Set 1 #

Patch Set 2 : Fix build breakage #

Patch Set 3 : #

Patch Set 4 : Fix build breakage #

Patch Set 5 : Include more cases #

Patch Set 6 : #

Patch Set 7 : Add FastShutdown #

Patch Set 8 : Fix typos #

Patch Set 9 : Fix typos #

Total comments: 8

Patch Set 10 : Use ProcessDied #

Patch Set 11 : Revive StopChildProcess and KillProcess #

Total comments: 4

Patch Set 12 : Update comments #

Total comments: 2

Patch Set 13 : Update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -60 lines) Patch
M chrome/browser/extensions/extension_crash_recovery_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/window_open_apitest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/hung_renderer_view.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/hung_renderer_view.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -7 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/child_process_security_policy_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/indexed_db/indexed_db_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/manifest/manifest_manager_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +16 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/security_exploit_browsertest.cc View 1 1 chunk +1 line, -9 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -6 lines 0 comments Download
M content/public/browser/render_process_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +9 lines, -3 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/public/test/mock_render_process_host.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/mock_render_process_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/guest_view/extension_options/extension_options_guest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
M extensions/browser/guest_view/guest_view_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -4 lines 0 comments Download
M extensions/browser/guest_view/web_view/web_view_guest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 28 (2 generated)
Jaekyun Seok (inactive)
Please review this CL to use StopChildProcess instead of base::KillProcess to kill a renderer process. ...
6 years, 1 month ago (2014-11-24 10:04:21 UTC) #2
Charlie Reis
I'm looking forward to having these crash-inducing tests work on Android! However, ifdef'ing every callsite ...
6 years ago (2014-11-24 17:53:59 UTC) #3
no sievers
On 2014/11/24 17:53:59, Charlie Reis wrote: > I'm looking forward to having these crash-inducing tests ...
6 years ago (2014-11-24 21:35:26 UTC) #4
Jaekyun Seok (inactive)
On 2014/11/24 21:35:26, sievers wrote: > On 2014/11/24 17:53:59, Charlie Reis wrote: > +1 Let's ...
6 years ago (2014-11-24 22:27:18 UTC) #5
no sievers
On 2014/11/24 22:27:18, Jaekyun Seok wrote: > On 2014/11/24 21:35:26, sievers wrote: > > On ...
6 years ago (2014-11-24 22:44:36 UTC) #6
Jaekyun Seok (inactive)
PTAL. I added RenderProcessHost::FastShutdown and replace KillProcess with it. On 2014/11/24 22:44:36, sievers wrote: > ...
6 years ago (2014-11-25 03:25:46 UTC) #7
Jaekyun Seok (inactive)
Ping?
6 years ago (2014-11-27 01:19:08 UTC) #8
benwells
On 2014/11/27 01:19:08, Jaekyun Seok wrote: > Ping? You've got a lot of reviewers. I ...
6 years ago (2014-11-27 02:21:01 UTC) #9
Jaekyun Seok (inactive)
On 2014/11/27 02:21:01, benwells wrote: > It would help if you told each reviewer what ...
6 years ago (2014-11-27 02:37:10 UTC) #10
Charlie Reis
Sorry for the delay! I like having it on RenderProcessHost. Just one request about the ...
6 years ago (2014-12-01 19:44:10 UTC) #11
no sievers
https://codereview.chromium.org/740813004/diff/160001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/740813004/diff/160001/content/browser/renderer_host/render_process_host_impl.cc#newcode1347 content/browser/renderer_host/render_process_host_impl.cc:1347: #if defined(OS_ANDROID) I'm still confused why we need an ...
6 years ago (2014-12-01 21:32:13 UTC) #12
no sievers
On 2014/12/01 21:32:13, sievers wrote: > https://codereview.chromium.org/740813004/diff/160001/content/browser/renderer_host/render_process_host_impl.cc > File content/browser/renderer_host/render_process_host_impl.cc (right): > > https://codereview.chromium.org/740813004/diff/160001/content/browser/renderer_host/render_process_host_impl.cc#newcode1347 > ...
6 years ago (2014-12-01 21:34:16 UTC) #13
Jaekyun Seok (inactive)
PTAL. I modified FastShutdown to call ProcessDied internally. https://codereview.chromium.org/740813004/diff/160001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/740813004/diff/160001/content/browser/renderer_host/render_process_host_impl.cc#newcode1345 content/browser/renderer_host/render_process_host_impl.cc:1345: return ...
6 years ago (2014-12-02 00:50:39 UTC) #14
Jaekyun Seok (inactive)
PTAL. I revived StopChildProcess and KillProcess because ProcessDied failed in some tests. And I changed ...
6 years ago (2014-12-02 05:42:53 UTC) #15
Charlie Reis
Patch set 11 LGTM with the nits below. I'm not ok with the ProcessDied approach ...
6 years ago (2014-12-02 17:13:37 UTC) #16
no sievers
On 2014/12/02 17:13:37, Charlie Reis wrote: > Patch set 11 LGTM with the nits below. ...
6 years ago (2014-12-02 18:13:42 UTC) #17
Jaekyun Seok (inactive)
> sgtm. But sounds like there would still be failing tests on Android because we ...
6 years ago (2014-12-03 02:49:18 UTC) #18
Jaekyun Seok (inactive)
https://codereview.chromium.org/740813004/diff/200001/content/public/browser/render_process_host.h File content/public/browser/render_process_host.h (right): https://codereview.chromium.org/740813004/diff/200001/content/public/browser/render_process_host.h#newcode105 content/public/browser/render_process_host.h:105: // Try to shutdown the associated renderer process forcedly, ...
6 years ago (2014-12-03 02:51:35 UTC) #19
Charlie Reis
On 2014/12/03 02:49:18, Jaekyun Seok wrote: > There are no failing tests on Android, and ...
6 years ago (2014-12-03 17:41:37 UTC) #20
Jaekyun Seok (inactive)
> That's not quite true. It's not used there, but it is used > on ...
6 years ago (2014-12-04 01:30:04 UTC) #21
Jaekyun Seok (inactive)
benwells and yoz, could you please review changes on extensions/ and chrome/browser/extensions? And thestig and ...
6 years ago (2014-12-04 01:34:27 UTC) #22
Lei Zhang
chrome/browser is consistent -> lgtm
6 years ago (2014-12-04 02:45:32 UTC) #23
benwells
c/b/extensions, extensions/ lgtm
6 years ago (2014-12-04 04:55:26 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/740813004/240001
6 years ago (2014-12-04 22:20:06 UTC) #26
commit-bot: I haz the power
Committed patchset #13 (id:240001)
6 years ago (2014-12-04 23:34:01 UTC) #27
commit-bot: I haz the power
6 years ago (2014-12-04 23:34:43 UTC) #28
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/37e572a3b60109e457a09df566d15c6f96b79210
Cr-Commit-Position: refs/heads/master@{#306931}

Powered by Google App Engine
This is Rietveld 408576698