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

Unified Diff: mojo/edk/embedder/platform_shared_buffer.cc

Issue 2849243002: Get rid of all pid references from base::SharedMemoryHandle. (Closed)
Patch Set: fix invalid handle Chrome IPC. Created 3 years, 8 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 | « ipc/ipc_message_utils.cc ('k') | mojo/edk/system/platform_wrapper_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/platform_shared_buffer.cc
diff --git a/mojo/edk/embedder/platform_shared_buffer.cc b/mojo/edk/embedder/platform_shared_buffer.cc
index a6121503f244ee02bfd1d05538163d6721a43ef6..c53cda21375301a843c1b9f577c3dc2154e3b0f7 100644
--- a/mojo/edk/embedder/platform_shared_buffer.cc
+++ b/mojo/edk/embedder/platform_shared_buffer.cc
@@ -237,12 +237,10 @@ bool PlatformSharedBuffer::InitFromPlatformHandle(
DCHECK(!shared_memory_);
#if defined(OS_WIN)
- base::SharedMemoryHandle handle(platform_handle.release().handle,
- base::GetCurrentProcId());
+ base::SharedMemoryHandle handle(platform_handle.release().handle);
#elif defined(OS_MACOSX) && !defined(OS_IOS)
base::SharedMemoryHandle handle;
- handle = base::SharedMemoryHandle(platform_handle.release().port, num_bytes_,
- base::GetCurrentProcId());
+ handle = base::SharedMemoryHandle(platform_handle.release().port, num_bytes_);
#else
base::SharedMemoryHandle handle(
base::FileDescriptor(platform_handle.release().handle, false));
@@ -261,10 +259,8 @@ bool PlatformSharedBuffer::InitFromPlatformHandlePair(
#else // defined(OS_MACOSX)
#if defined(OS_WIN)
- base::SharedMemoryHandle handle(rw_platform_handle.release().handle,
- base::GetCurrentProcId());
- base::SharedMemoryHandle ro_handle(ro_platform_handle.release().handle,
- base::GetCurrentProcId());
+ base::SharedMemoryHandle handle(rw_platform_handle.release().handle);
+ base::SharedMemoryHandle ro_handle(ro_platform_handle.release().handle);
#else // defined(OS_WIN)
base::SharedMemoryHandle handle(
base::FileDescriptor(rw_platform_handle.release().handle, false));
« no previous file with comments | « ipc/ipc_message_utils.cc ('k') | mojo/edk/system/platform_wrapper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698