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

Issue 725353003: Don't pass ProcessHandle through ChildProcessHostDelegate. (Closed)

Created:
6 years, 1 month ago by rvargas (doing something else)
Modified:
6 years, 1 month ago
Reviewers:
jam, cpu_(ooo_6.6-7.5), gene
CC:
chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Don't pass ProcessHandle through ChildProcessHostDelegate. ChildProcessHostDelegate doesn't make clear what ownership rules apply to the process handle and as a result one of the implementations assume that the caller has to delete the handle (ServiceUtilityProcessHost) while the other one assumes that it does not (BrowserChildProcessHostImpl). On the other hand, one caller closes the handle (ChildProcessHostImpl) and the other does not (PpapiPluginProcessHost). This CL enforces the API of not transfering ownership when getting the process handle (as both implementations keep using the handle after they receive the call). BUG=417532 Committed: https://crrev.com/5779b38e9f3fae82dbbed7219d96cdd19eef1813 Cr-Commit-Position: refs/heads/master@{#304664}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -50 lines) Patch
M base/process/process.h View 1 chunk +6 lines, -0 lines 0 comments Download
M base/process/process_posix.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M base/process/process_unittest.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M base/process/process_win.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/service/service_utility_process_host.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/service/service_utility_process_host.cc View 5 chunks +11 lines, -8 lines 0 comments Download
M content/browser/browser_child_process_host_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.h View 5 chunks +8 lines, -7 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_impl.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/pepper/browser_ppapi_host_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/pepper/pepper_file_io_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/pepper/pepper_flash_file_message_filter.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/pepper/pepper_flash_file_message_filter.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/pepper/pepper_gamepad_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/child_process_host_impl.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/common/child_process_host_impl.cc View 5 chunks +14 lines, -9 lines 0 comments Download
M content/public/browser/browser_ppapi_host.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/common/child_process_host_delegate.h View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
rvargas (doing something else)
PTAL: cpu -> base jam -> content
6 years, 1 month ago (2014-11-17 23:45:01 UTC) #3
cpu_(ooo_6.6-7.5)
base lgtm https://codereview.chromium.org/725353003/diff/20001/base/process/process_win.cc File base/process/process_win.cc (right): https://codereview.chromium.org/725353003/diff/20001/base/process/process_win.cc#newcode48 base/process/process_win.cc:48: return Process(); no dcheck before returning at ...
6 years, 1 month ago (2014-11-18 01:40:43 UTC) #4
rvargas (doing something else)
Thanks https://codereview.chromium.org/725353003/diff/20001/base/process/process_win.cc File base/process/process_win.cc (right): https://codereview.chromium.org/725353003/diff/20001/base/process/process_win.cc#newcode48 base/process/process_win.cc:48: return Process(); On 2014/11/18 01:40:42, cpu wrote: > ...
6 years, 1 month ago (2014-11-18 01:52:34 UTC) #5
jam
lgtm https://codereview.chromium.org/725353003/diff/20001/content/public/browser/browser_ppapi_host.h File content/public/browser/browser_ppapi_host.h (right): https://codereview.chromium.org/725353003/diff/20001/content/public/browser/browser_ppapi_host.h#newcode64 content/public/browser/browser_ppapi_host.h:64: // Returns a refernce to the plugin process. ...
6 years, 1 month ago (2014-11-18 19:12:26 UTC) #6
rvargas (doing something else)
Thanks. +gene for chrome/service https://codereview.chromium.org/725353003/diff/20001/content/public/browser/browser_ppapi_host.h File content/public/browser/browser_ppapi_host.h (right): https://codereview.chromium.org/725353003/diff/20001/content/public/browser/browser_ppapi_host.h#newcode64 content/public/browser/browser_ppapi_host.h:64: // Returns a refernce to ...
6 years, 1 month ago (2014-11-18 19:27:49 UTC) #8
gene
lgtm for chrome/service
6 years, 1 month ago (2014-11-18 19:34:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/725353003/40001
6 years, 1 month ago (2014-11-18 19:44:32 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:40001)
6 years, 1 month ago (2014-11-18 20:44:20 UTC) #12
commit-bot: I haz the power
6 years, 1 month ago (2014-11-18 20:45:09 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5779b38e9f3fae82dbbed7219d96cdd19eef1813
Cr-Commit-Position: refs/heads/master@{#304664}

Powered by Google App Engine
This is Rietveld 408576698