Index: ipc/ipc_channel_win.cc |
diff --git a/ipc/ipc_channel_win.cc b/ipc/ipc_channel_win.cc |
index e56235da3d16fba598bfdc56375b8373e2f66955..e310217d8d06af222b88c32d9cc407f9264c1755 100644 |
--- a/ipc/ipc_channel_win.cc |
+++ b/ipc/ipc_channel_win.cc |
@@ -93,16 +93,10 @@ bool Channel::ChannelImpl::Send(Message* message) { |
return true; |
} |
-const std::wstring Channel::ChannelImpl::PipeName( |
- const std::string& channel_id) const { |
- std::string name("\\\\.\\pipe\\chrome."); |
- return ASCIIToWide(name.append(channel_id)); |
-} |
- |
bool Channel::ChannelImpl::CreatePipe(const IPC::ChannelHandle &channel_handle, |
Mode mode) { |
DCHECK_EQ(INVALID_HANDLE_VALUE, pipe_); |
- const std::wstring pipe_name = PipeName(channel_handle.name); |
+ const std::wstring pipe_name = PipeNameFromChannelId(channel_handle.name); |
if (mode & MODE_SERVER_FLAG) { |
pipe_ = CreateNamedPipeW(pipe_name.c_str(), |
PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED | |
@@ -384,6 +378,11 @@ void Channel::ChannelImpl::OnIOCompleted(MessageLoopForIO::IOContext* context, |
} |
} |
+const std::wstring PipeNameFromChannelId(const std::string& channel_id) { |
+ std::string name("\\\\.\\pipe\\chrome."); |
+ return ASCIIToWide(name.append(channel_id)); |
+} |
+ |
//------------------------------------------------------------------------------ |
// Channel's methods simply call through to ChannelImpl. |
Channel::Channel(const IPC::ChannelHandle &channel_handle, Mode mode, |