diff options
author | morrita <morrita@chromium.org> | 2014-10-20 16:53:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-20 23:53:50 +0000 |
commit | a409ccc3182ae1cb91fe7937a6c60f8d80755436 (patch) | |
tree | de8d2996aa21b74beefef4d5bc85cfae6ede8bec /ipc/ipc_test_sink.h | |
parent | 71187e343e2a8005dff92649b3013ba5019f974a (diff) | |
download | chromium_src-a409ccc3182ae1cb91fe7937a6c60f8d80755436.zip chromium_src-a409ccc3182ae1cb91fe7937a6c60f8d80755436.tar.gz chromium_src-a409ccc3182ae1cb91fe7937a6c60f8d80755436.tar.bz2 |
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
Review URL: https://codereview.chromium.org/621613002
Cr-Commit-Position: refs/heads/master@{#300381}
Diffstat (limited to 'ipc/ipc_test_sink.h')
-rw-r--r-- | ipc/ipc_test_sink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/ipc_test_sink.h b/ipc/ipc_test_sink.h index 8154552..13386f1 100644 --- a/ipc/ipc_test_sink.h +++ b/ipc/ipc_test_sink.h @@ -85,7 +85,7 @@ class TestSink : public Channel { #if defined(OS_POSIX) && !defined(OS_NACL) virtual int GetClientFileDescriptor() const override; - virtual int TakeClientFileDescriptor() override; + virtual base::ScopedFD TakeClientFileDescriptor() override; #endif // defined(OS_POSIX) && !defined(OS_NACL) // Used by the source of the messages to send the message to the sink. This |