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

Unified Diff: ipc/mojo/ipc_mojo_bootstrap.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/mojo/ipc_mojo_bootstrap.cc
diff --git a/ipc/mojo/ipc_mojo_bootstrap.cc b/ipc/mojo/ipc_mojo_bootstrap.cc
index 626dc1733838931ca0b34266ccd470bf56c5c4c1..7233de0fa2d0259b5389f5e1306397b81f9683fa 100644
--- a/ipc/mojo/ipc_mojo_bootstrap.cc
+++ b/ipc/mojo/ipc_mojo_bootstrap.cc
@@ -211,7 +211,7 @@ int MojoBootstrap::GetClientFileDescriptor() const {
return channel_->GetClientFileDescriptor();
}
-int MojoBootstrap::TakeClientFileDescriptor() {
+base::ScopedFD MojoBootstrap::TakeClientFileDescriptor() {
return channel_->TakeClientFileDescriptor();
}
#endif // defined(OS_POSIX) && !defined(OS_NACL)

Powered by Google App Engine
This is Rietveld 408576698