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

Issue 621613002: Refactoring: Make IPC::Channel::TakeClientFileDescriptor() a ScopedFD. (Closed)

Created:
6 years, 2 months ago by Hajime Morrita
Modified:
6 years, 2 months ago
CC:
chromium-reviews, creis+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, piman+watch_chromium.org, darin (slow to review), erikwright+watch_chromium.org, ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Refactoring: Make IPC::Channel::TakeClientFileDescriptor() a ScopedFD. By using base::ScopedFD, the ownership of the returned FD becomes clearer. BUG=415294 R=brettw@chromium.org, jam@chromium.org, yzshen@chromium.org, sehr@chromium.org TBR=gene@chromium.org Committed: https://crrev.com/a409ccc3182ae1cb91fe7937a6c60f8d80755436 Cr-Commit-Position: refs/heads/master@{#300381}

Patch Set 1 #

Patch Set 2 : Rebased, Fixed Android build failure. #

Patch Set 3 : Fixing Mac build #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -71 lines) Patch
M base/file_descriptor_posix.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M components/nacl/loader/nacl_ipc_adapter.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M components/nacl/loader/nacl_ipc_adapter.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/loader/nacl_trusted_listener.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/child_process_launcher.cc View 1 6 chunks +12 lines, -8 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/plugin_process_host.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/ppapi_plugin_process_host.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M content/browser/utility_process_host_impl.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/child_process_host_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/child_process_host_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/gpu_channel.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/gpu_channel.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/plugin/plugin_channel.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/plugin/plugin_thread.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/ppapi_plugin/ppapi_thread.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/child_process_host.h View 2 chunks +2 lines, -1 line 0 comments Download
M content/public/common/sandboxed_process_launcher_delegate.h View 2 chunks +2 lines, -2 lines 0 comments Download
M ipc/ipc_channel.h View 2 chunks +2 lines, -1 line 0 comments Download
M ipc/ipc_channel_posix.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_channel_posix.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M ipc/ipc_channel_posix_unittest.cc View 1 2 chunks +4 lines, -6 lines 0 comments Download
M ipc/ipc_channel_proxy.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_channel_proxy.cc View 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_send_fds_test.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M ipc/ipc_test_sink.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_test_sink.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ipc/mojo/ipc_channel_mojo.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ipc/mojo/ipc_channel_mojo.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ipc/mojo/ipc_mojo_bootstrap.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ipc/mojo/ipc_mojo_bootstrap.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/proxy_channel.h View 1 2 chunks +2 lines, -1 line 2 comments Download
M ppapi/proxy/proxy_channel.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (5 generated)
Hajime Morrita
6 years, 2 months ago (2014-10-01 00:41:51 UTC) #1
jam
Charlie: can you look at this please? I'm overloaded, thanks.
6 years, 2 months ago (2014-10-02 06:18:13 UTC) #3
Charlie Reis
I don't have all the context, but I like that it's making the ownership clearer. ...
6 years, 2 months ago (2014-10-02 17:33:46 UTC) #4
brettw
base lgtm, didn't look at the rest.
6 years, 2 months ago (2014-10-02 17:55:40 UTC) #5
sehr
nacl parts LGTM.
6 years, 2 months ago (2014-10-10 17:47:07 UTC) #6
Hajime Morrita
agl: Could you take a look at ipc/? Dave: Rubberstamp ppapi/ please?
6 years, 2 months ago (2014-10-20 21:18:47 UTC) #9
agl
ipc/ LGTM
6 years, 2 months ago (2014-10-20 21:26:45 UTC) #10
dmichael (off chromium)
ppapi lgtm https://codereview.chromium.org/621613002/diff/50001/ppapi/proxy/proxy_channel.h File ppapi/proxy/proxy_channel.h (right): https://codereview.chromium.org/621613002/diff/50001/ppapi/proxy/proxy_channel.h#newcode8 ppapi/proxy/proxy_channel.h:8: #include "base/files/scoped_file.h" optional nit: It should be ...
6 years, 2 months ago (2014-10-20 22:34:41 UTC) #11
Hajime Morrita
https://codereview.chromium.org/621613002/diff/50001/ppapi/proxy/proxy_channel.h File ppapi/proxy/proxy_channel.h (right): https://codereview.chromium.org/621613002/diff/50001/ppapi/proxy/proxy_channel.h#newcode8 ppapi/proxy/proxy_channel.h:8: #include "base/files/scoped_file.h" On 2014/10/20 22:34:40, dmichael wrote: > optional ...
6 years, 2 months ago (2014-10-20 22:49:53 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/621613002/50001
6 years, 2 months ago (2014-10-20 22:53:30 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:50001)
6 years, 2 months ago (2014-10-20 23:53:39 UTC) #16
commit-bot: I haz the power
6 years, 2 months ago (2014-10-20 23:54:20 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/a409ccc3182ae1cb91fe7937a6c60f8d80755436
Cr-Commit-Position: refs/heads/master@{#300381}

Powered by Google App Engine
This is Rietveld 408576698