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

Issue 155331: plugins: use OnChannelError to detect when the channel goes away (Closed)

Created:
11 years, 5 months ago by Evan Martin
Modified:
9 years, 7 months ago
Reviewers:
Antoine Labour, jam, agl, tony
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

plugins: use OnChannelError to detect when the channel goes away Previously we used a special Watcher object to watch the process, but that is not portable to POSIX and this is simpler anyway. With this change, I now see ~PluginProcessHost() running when a plugin crashes. If you recall all the way back to http://codereview.chromium.org/16814 we did a similar thing to the renderer host.

Patch Set 1 #

Patch Set 2 : extra comment #

Total comments: 3

Patch Set 3 : with comment #

Patch Set 4 : with a fix to a unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -33 lines) Patch
M chrome/browser/utility_process_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/utility_process_host_unittest.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/worker_host/worker_process_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/child_process_host.h View 1 4 chunks +2 lines, -9 lines 0 comments Download
M chrome/common/child_process_host.cc View 1 2 5 chunks +11 lines, -22 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Evan Martin
John, I'm especially interested in possible test cases I can run to triple-check this doesn't ...
11 years, 5 months ago (2009-07-09 22:46:28 UTC) #1
agl
LGTM
11 years, 5 months ago (2009-07-09 22:52:49 UTC) #2
Antoine Labour
The linux bits look good. For the windows part, I assume this means we now ...
11 years, 5 months ago (2009-07-09 22:56:48 UTC) #3
Evan Martin
On 2009/07/09 22:56:48, Antoine Labour wrote: > The linux bits look good. For the windows ...
11 years, 5 months ago (2009-07-09 23:01:40 UTC) #4
jam
lgtm (I hope that OnChannelError gets called all the time!) http://codereview.chromium.org/155331/diff/1001/13 File chrome/common/child_process_host.cc (right): http://codereview.chromium.org/155331/diff/1001/13#newcode114 ...
11 years, 5 months ago (2009-07-09 23:03:00 UTC) #5
Evan Martin
http://codereview.chromium.org/155331/diff/1001/13 File chrome/common/child_process_host.cc (right): http://codereview.chromium.org/155331/diff/1001/13#newcode114 Line 114: set_handle(NULL); On 2009/07/09 23:03:00, John Abd-El-Malek wrote: > ...
11 years, 5 months ago (2009-07-09 23:06:15 UTC) #6
jam
http://codereview.chromium.org/155331/diff/1001/13 File chrome/common/child_process_host.cc (right): http://codereview.chromium.org/155331/diff/1001/13#newcode114 Line 114: set_handle(NULL); On 2009/07/09 23:06:15, Evan Martin wrote: > ...
11 years, 5 months ago (2009-07-09 23:10:05 UTC) #7
Evan Martin
On 2009/07/09 23:10:05, John Abd-El-Malek wrote: > http://codereview.chromium.org/155331/diff/1001/13 > File chrome/common/child_process_host.cc (right): > > http://codereview.chromium.org/155331/diff/1001/13#newcode114 ...
11 years, 5 months ago (2009-07-09 23:14:46 UTC) #8
Evan Martin
That was a terrible explanation, sorry. All I meant was that you can only call ...
11 years, 5 months ago (2009-07-09 23:16:01 UTC) #9
jam
On 2009/07/09 23:16:01, Evan Martin wrote: > That was a terrible explanation, sorry. All I ...
11 years, 5 months ago (2009-07-09 23:19:06 UTC) #10
Evan Martin
Tony: I'm retrying this change I had to revert. All of the code is the ...
11 years, 5 months ago (2009-07-10 18:19:18 UTC) #11
tony
11 years, 5 months ago (2009-07-10 18:28:58 UTC) #12
utility_process_host_unittest change LGTM.  Maybe verify that it doesn't leak in
valgrind?

Powered by Google App Engine
This is Rietveld 408576698