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

Issue 651253002: Enforce handle ownership in base::Process (Closed)

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

Description

Enforce handle ownership in base::Process. The main user (and the immediate reason for the change) is to improve handle ownership in content::ChildProcessLauncher. This CL is not enforcing clean ownership beyond ChildProcessLauncher; that is to be covered by subsequent CLs. BUG=417532 TEST=base_unittests R=scottmg@chromium.org, thestig@chromium.org Committed: https://crrev.com/079d184e2786686546385df92c7e72d8023f2941 Cr-Commit-Position: refs/heads/master@{#300180}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Remove old class #

Total comments: 8

Patch Set 3 : nits #

Total comments: 2

Patch Set 4 : Fix comment #

Patch Set 5 : Add empty line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+526 lines, -289 lines) Patch
M base/BUILD.gn View 1 2 chunks +2 lines, -0 lines 0 comments Download
M base/base.gyp View 2 chunks +2 lines, -0 lines 0 comments Download
M base/process/kill_posix.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M base/process/process.h View 1 2 chunks +52 lines, -19 lines 0 comments Download
M base/process/process_linux.cc View 1 4 chunks +30 lines, -28 lines 0 comments Download
M base/process/process_posix.cc View 1 5 chunks +49 lines, -15 lines 0 comments Download
A base/process/process_unittest.cc View 1 2 3 4 1 chunk +161 lines, -0 lines 0 comments Download
M base/process/process_util_unittest.cc View 1 1 chunk +0 lines, -39 lines 0 comments Download
M base/process/process_win.cc View 1 3 chunks +78 lines, -39 lines 0 comments Download
M base/win/event_trace_consumer_unittest.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M base/win/event_trace_controller_unittest.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/lifetime/application_lifetime.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc View 1 2 5 chunks +40 lines, -20 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_database.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/policy/core/common/policy_loader_win_unittest.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M content/browser/browser_child_process_host_impl.h View 1 2 3 4 chunks +10 lines, -3 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 4 chunks +9 lines, -33 lines 0 comments Download
M content/browser/child_process_launcher.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/child_process_launcher.cc View 1 13 chunks +54 lines, -49 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 2 chunks +3 lines, -7 lines 0 comments Download
M content/child/resource_dispatcher_unittest.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M content/common/gpu/media/video_decode_accelerator_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/video_encode_accelerator_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/test/mock_render_process_host.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/devtools/devtools_agent.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/android/audio_decoder_android.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/android/stream_texture_factory_synchronous_impl.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M device/test/usb_test_gadget_impl.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_proxy_test.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 30 (8 generated)
rvargas (doing something else)
6 years, 2 months ago (2014-10-14 18:04:16 UTC) #1
scottmg
https://codereview.chromium.org/651253002/diff/1/base/process/process.h File base/process/process.h (right): https://codereview.chromium.org/651253002/diff/1/base/process/process.h#newcode21 base/process/process.h:21: // TODO(rvargas) crbug.com/417532: Reaname this class Process after switching ...
6 years, 2 months ago (2014-10-14 18:51:03 UTC) #2
rvargas (doing something else)
Thanks. https://codereview.chromium.org/651253002/diff/1/base/process/process.h File base/process/process.h (right): https://codereview.chromium.org/651253002/diff/1/base/process/process.h#newcode21 base/process/process.h:21: // TODO(rvargas) crbug.com/417532: Reaname this class Process after ...
6 years, 2 months ago (2014-10-14 19:56:55 UTC) #3
scottmg
OK, lgtm then with the minor tweaks, but I'm not owners on anything here. (I ...
6 years, 2 months ago (2014-10-14 20:17:48 UTC) #4
rvargas (doing something else)
Thanks. I wrote a CL to rename Process -> ProcessRaw, but then I realized I ...
6 years, 2 months ago (2014-10-16 02:17:05 UTC) #6
Lei Zhang
https://codereview.chromium.org/651253002/diff/20001/base/process/process.h File base/process/process.h (right): https://codereview.chromium.org/651253002/diff/20001/base/process/process.h#newcode40 base/process/process.h:40: Process(RValue other); should this be explicit? https://codereview.chromium.org/651253002/diff/20001/base/process/process_unittest.cc File base/process/process_unittest.cc ...
6 years, 2 months ago (2014-10-16 02:50:09 UTC) #7
rvargas (doing something else)
Thanks https://codereview.chromium.org/651253002/diff/20001/base/process/process.h File base/process/process.h (right): https://codereview.chromium.org/651253002/diff/20001/base/process/process.h#newcode40 base/process/process.h:40: Process(RValue other); On 2014/10/16 02:50:08, Lei Zhang wrote: ...
6 years, 2 months ago (2014-10-16 19:06:10 UTC) #8
Lei Zhang
lgtm
6 years, 2 months ago (2014-10-16 20:46:37 UTC) #9
rvargas (doing something else)
+ joaodasilva -> components sievers -> content dmichael -> ppapi
6 years, 2 months ago (2014-10-16 21:39:58 UTC) #11
dmichael (off chromium)
ppapi lgtm
6 years, 2 months ago (2014-10-16 21:44:49 UTC) #12
Joao da Silva
components/policy lgtm
6 years, 2 months ago (2014-10-17 06:24:26 UTC) #13
no sievers
lgtm https://codereview.chromium.org/651253002/diff/40001/content/browser/browser_child_process_host_impl.h File content/browser/browser_child_process_host_impl.h (right): https://codereview.chromium.org/651253002/diff/40001/content/browser/browser_child_process_host_impl.h#newcode110 content/browser/browser_child_process_host_impl.h:110: // ObjectWatcher implementation. nit: ObjectWatcher::Delegate implementation.
6 years, 2 months ago (2014-10-17 18:43:16 UTC) #14
rvargas (doing something else)
Thanks https://codereview.chromium.org/651253002/diff/40001/content/browser/browser_child_process_host_impl.h File content/browser/browser_child_process_host_impl.h (right): https://codereview.chromium.org/651253002/diff/40001/content/browser/browser_child_process_host_impl.h#newcode110 content/browser/browser_child_process_host_impl.h:110: // ObjectWatcher implementation. On 2014/10/17 18:43:16, sievers wrote: ...
6 years, 2 months ago (2014-10-17 19:12:54 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/651253002/60001
6 years, 2 months ago (2014-10-17 19:14:25 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/18412)
6 years, 2 months ago (2014-10-17 19:23:36 UTC) #19
rvargas (doing something else)
oops. missed device/ owner. + rockot
6 years, 2 months ago (2014-10-17 19:28:36 UTC) #21
Ken Rockot(use gerrit already)
On 2014/10/17 19:28:36, rvargas wrote: > oops. missed device/ owner. > > + rockot lgtm
6 years, 2 months ago (2014-10-17 19:29:20 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/651253002/60001
6 years, 2 months ago (2014-10-17 20:39:45 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/25944)
6 years, 2 months ago (2014-10-17 21:11:52 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/651253002/80001
6 years, 2 months ago (2014-10-17 22:06:30 UTC) #28
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 2 months ago (2014-10-17 22:32:25 UTC) #29
commit-bot: I haz the power
6 years, 2 months ago (2014-10-17 22:33:18 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/079d184e2786686546385df92c7e72d8023f2941
Cr-Commit-Position: refs/heads/master@{#300180}

Powered by Google App Engine
This is Rietveld 408576698