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

Issue 1508213002: Replace ScopedVector<ScopedFD> with std::vector<ScopedFD> (Closed)

Created:
5 years ago by mdempsky
Modified:
5 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, rickyz+watch_chromium.org, jln+watch_chromium.org, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace ScopedVector<ScopedFD> with std::vector<ScopedFD> TBR=mseaborn@chromium.org,piman@chromium.org,derat@chromium.org Committed: https://crrev.com/f12295a5c4790b877b865cc5b062c8543c353907 Cr-Commit-Position: refs/heads/master@{#364189}

Patch Set 1 #

Patch Set 2 : IWYU nit #

Patch Set 3 : Fix build #

Total comments: 6

Patch Set 4 : clang-format #

Patch Set 5 : Style nit from jln #

Patch Set 6 : revert gratuitous .at(0) change back to [0] #

Total comments: 13

Patch Set 7 : danakj feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -113 lines) Patch
M base/posix/unix_domain_socket_linux.h View 4 chunks +3 lines, -4 lines 0 comments Download
M base/posix/unix_domain_socket_linux.cc View 1 2 3 4 5 7 chunks +6 lines, -7 lines 0 comments Download
M base/posix/unix_domain_socket_linux_unittest.cc View 5 chunks +4 lines, -5 lines 0 comments Download
M components/nacl/loader/nacl_helper_linux.cc View 1 2 3 9 chunks +16 lines, -25 lines 0 comments Download
M components/nacl/zygote/nacl_fork_delegate_linux.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/file_descriptor_info_impl.h View 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/file_descriptor_info_impl.cc View 1 2 3 4 5 6 3 chunks +7 lines, -9 lines 0 comments Download
M content/browser/renderer_host/sandbox_ipc_linux.h View 1 2 3 1 chunk +9 lines, -9 lines 0 comments Download
M content/browser/renderer_host/sandbox_ipc_linux.cc View 12 chunks +17 lines, -18 lines 0 comments Download
M content/browser/zygote_host/zygote_host_impl_linux.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M content/zygote/zygote_linux.h View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M content/zygote/zygote_linux.cc View 1 2 3 4 10 chunks +17 lines, -21 lines 0 comments Download
M extensions/shell/app/shell_main_delegate.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/linux/integration_tests/namespace_unix_domain_socket_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M sandbox/linux/syscall_broker/broker_host.cc View 1 2 3 4 5 6 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
mdempsky
5 years ago (2015-12-08 22:54:12 UTC) #2
jln (very slow on Chromium)
Somehow I missed that this was for Dana, not me. Since I finished it anyways: ...
5 years ago (2015-12-08 23:06:24 UTC) #4
mdempsky
https://codereview.chromium.org/1508213002/diff/40001/base/posix/unix_domain_socket_linux.cc File base/posix/unix_domain_socket_linux.cc (right): https://codereview.chromium.org/1508213002/diff/40001/base/posix/unix_domain_socket_linux.cc#newcode238 base/posix/unix_domain_socket_linux.cc:238: *result_fd = recv_fds.empty() ? -1 : recv_fds.at(0).release(); On 2015/12/08 ...
5 years ago (2015-12-08 23:13:55 UTC) #5
danakj
LGTM w/ a few comments https://codereview.chromium.org/1508213002/diff/100001/base/posix/unix_domain_socket_linux.cc File base/posix/unix_domain_socket_linux.cc (right): https://codereview.chromium.org/1508213002/diff/100001/base/posix/unix_domain_socket_linux.cc#newcode167 base/posix/unix_domain_socket_linux.cc:167: fds->push_back(ScopedFD(wire_fds[i])); // TODO(mdempsky): emplace_back ...
5 years ago (2015-12-08 23:44:48 UTC) #6
mdempsky
https://codereview.chromium.org/1508213002/diff/100001/base/posix/unix_domain_socket_linux.cc File base/posix/unix_domain_socket_linux.cc (right): https://codereview.chromium.org/1508213002/diff/100001/base/posix/unix_domain_socket_linux.cc#newcode167 base/posix/unix_domain_socket_linux.cc:167: fds->push_back(ScopedFD(wire_fds[i])); // TODO(mdempsky): emplace_back On 2015/12/08 23:44:48, danakj (behind ...
5 years ago (2015-12-09 00:45:37 UTC) #7
danakj
https://codereview.chromium.org/1508213002/diff/100001/content/browser/file_descriptor_info_impl.cc File content/browser/file_descriptor_info_impl.cc (right): https://codereview.chromium.org/1508213002/diff/100001/content/browser/file_descriptor_info_impl.cc#newcode67 content/browser/file_descriptor_info_impl.cc:67: found->swap(fd); On 2015/12/09 00:45:37, mdempsky wrote: > On 2015/12/08 ...
5 years ago (2015-12-09 00:48:43 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1508213002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1508213002/120001
5 years ago (2015-12-09 17:59:22 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/147151)
5 years ago (2015-12-09 20:30:06 UTC) #12
mdempsky
Refactoring TBRs: mseaborn for components/nacl piman for content/browser derat for extensions/shell
5 years ago (2015-12-09 20:38:21 UTC) #15
Daniel Erat
lgtm for extensions feel free to tbr stuff like this in the future
5 years ago (2015-12-09 20:39:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1508213002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1508213002/120001
5 years ago (2015-12-09 20:41:28 UTC) #19
Mark Seaborn
On 2015/12/09 20:38:21, mdempsky wrote: > Refactoring TBRs: > mseaborn for components/nacl LGTM
5 years ago (2015-12-09 20:44:06 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years ago (2015-12-09 22:54:53 UTC) #22
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/f12295a5c4790b877b865cc5b062c8543c353907 Cr-Commit-Position: refs/heads/master@{#364189}
5 years ago (2015-12-09 22:55:41 UTC) #24
mdempsky
On 2015/12/09 00:45:37, mdempsky wrote: > Afterwards, I seem to recall that we structured the ...
5 years ago (2015-12-10 19:27:28 UTC) #25
danakj
5 years ago (2015-12-10 19:29:07 UTC) #26
Message was sent while issue was closed.
On Thu, Dec 10, 2015 at 11:27 AM, <mdempsky@chromium.org> wrote:

> On 2015/12/09 00:45:37, mdempsky wrote:
>
>> Afterwards, I seem to recall that we structured the code this way to make
>> it
>> clear that ownership of the FDs was being passed downwards to where the
>> FDs
>> would be closed or moved-elsewhere as appropriate, but I'll experiment to
>> see
>>
> if
>
>> using vector* instead would make the code clearer/simpler.
>>
>
> Following up on this, I played around with changing the code to pass a
> vector*
> instead, and didn't find it improved the code any, so I'm going to leave
> it as
> is.
>

Ok cool, thanks!

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698