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

Unified Diff: ipc/ipc_test_sink.cc

Issue 621613002: Refactoring: Make IPC::Channel::TakeClientFileDescriptor() a ScopedFD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing Mac build Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ipc/ipc_test_sink.cc
diff --git a/ipc/ipc_test_sink.cc b/ipc/ipc_test_sink.cc
index e97cffd4448fee541075737514e35a28fd5f2b88..1f76c0484c357521cf029439a3e9898b02602a0e 100644
--- a/ipc/ipc_test_sink.cc
+++ b/ipc/ipc_test_sink.cc
@@ -100,9 +100,9 @@ int TestSink::GetClientFileDescriptor() const {
return -1;
}
-int TestSink::TakeClientFileDescriptor() {
+base::ScopedFD TestSink::TakeClientFileDescriptor() {
NOTREACHED();
- return -1;
+ return base::ScopedFD();
}
#endif // defined(OS_POSIX) && !defined(OS_NACL)
« no previous file with comments | « ipc/ipc_test_sink.h ('k') | ipc/mojo/ipc_channel_mojo.h » ('j') | ppapi/proxy/proxy_channel.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698