Index: mojo/edk/embedder/platform_channel_pair_win.cc |
diff --git a/mojo/edk/embedder/platform_channel_pair_win.cc b/mojo/edk/embedder/platform_channel_pair_win.cc |
index 4804eed70d036c97f943b4c4b41f8bd317557dc0..25306a61468d85a1b7bc23999f0bcfd7f4ee7ad8 100644 |
--- a/mojo/edk/embedder/platform_channel_pair_win.cc |
+++ b/mojo/edk/embedder/platform_channel_pair_win.cc |
@@ -23,8 +23,7 @@ namespace { |
std::wstring GeneratePipeName() { |
return base::StringPrintf(L"\\\\.\\pipe\\mojo.%u.%u.%I64u", |
- GetCurrentProcessId(), |
- GetCurrentThreadId(), |
+ GetCurrentProcessId(), GetCurrentThreadId(), |
base::RandUint64()); |
} |
@@ -37,9 +36,7 @@ PlatformChannelPair::PlatformChannelPair() { |
PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED | FILE_FLAG_FIRST_PIPE_INSTANCE; |
const DWORD kPipeMode = PIPE_TYPE_BYTE | PIPE_READMODE_BYTE; |
server_handle_.reset(PlatformHandle( |
- CreateNamedPipeW(pipe_name.c_str(), |
- kOpenMode, |
- kPipeMode, |
+ CreateNamedPipeW(pipe_name.c_str(), kOpenMode, kPipeMode, |
1, // Max instances. |
4096, // Out buffer size. |
4096, // In buffer size. |
@@ -56,12 +53,9 @@ PlatformChannelPair::PlatformChannelPair() { |
SECURITY_ATTRIBUTES security_attributes = { |
sizeof(SECURITY_ATTRIBUTES), nullptr, TRUE}; |
client_handle_.reset( |
- PlatformHandle(CreateFileW(pipe_name.c_str(), |
- kDesiredAccess, |
+ PlatformHandle(CreateFileW(pipe_name.c_str(), kDesiredAccess, |
0, // No sharing. |
- &security_attributes, |
- OPEN_EXISTING, |
- kFlags, |
+ &security_attributes, OPEN_EXISTING, kFlags, |
nullptr))); // No template file. |
PCHECK(client_handle_.is_valid()); |