Index: ipc/ipc_channel_win.cc |
diff --git a/ipc/ipc_channel_win.cc b/ipc/ipc_channel_win.cc |
index 9741dda05a13750f486d21f792f0c4aa6b3b7f65..0c691eb03d0cbf3f1c13549ea2b901ab3c1ff79f 100644 |
--- a/ipc/ipc_channel_win.cc |
+++ b/ipc/ipc_channel_win.cc |
@@ -136,6 +136,16 @@ base::ProcessId ChannelWin::GetPeerPID() const { |
return peer_pid_; |
} |
+base::ProcessId ChannelWin::GetSelfPID() const { |
+ return GetCurrentProcessId(); |
+} |
+ |
+ChannelHandle ChannelWin::TakePipeHandle() { |
+ ChannelHandle handle = ChannelHandle(pipe_); |
+ pipe_ = INVALID_HANDLE_VALUE; |
+ return handle; |
+} |
+ |
// static |
bool ChannelWin::IsNamedServerInitialized( |
const std::string& channel_id) { |