|
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}
Total comments: 4
|
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
|
Total messages: 13 (4 generated)
|