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

Unified Diff: remoting/host/ipc_util_posix.cc

Issue 307463004: Remove PlatformFile from remoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation Created 6 years, 7 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
« no previous file with comments | « remoting/host/ipc_util.h ('k') | remoting/host/ipc_util_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/ipc_util_posix.cc
diff --git a/remoting/host/ipc_util_posix.cc b/remoting/host/ipc_util_posix.cc
index d7c6a5d894988d47e98faf4c3dc8a3366ac46920..4901c998cf265b3384542cace92e1b37820a51c9 100644
--- a/remoting/host/ipc_util_posix.cc
+++ b/remoting/host/ipc_util_posix.cc
@@ -9,6 +9,7 @@
#include <sys/types.h>
#include <unistd.h>
+#include "base/files/file.h"
#include "base/logging.h"
#include "base/posix/eintr_wrapper.h"
#include "base/single_thread_task_runner.h"
@@ -20,7 +21,7 @@ namespace remoting {
bool CreateConnectedIpcChannel(
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
IPC::Listener* listener,
- IPC::PlatformFileForTransit* client_out,
+ base::File* client_out,
scoped_ptr<IPC::ChannelProxy>* server_out) {
// Create a socket pair.
int pipe_fds[2];
@@ -50,7 +51,7 @@ bool CreateConnectedIpcChannel(
listener,
io_task_runner.get()));
- *client_out = base::FileDescriptor(pipe_fds[1], false);
+ *client_out = base::File(pipe_fds[1]);
return true;
}
« no previous file with comments | « remoting/host/ipc_util.h ('k') | remoting/host/ipc_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698