Index: base/memory/shared_memory.h |
diff --git a/base/memory/shared_memory.h b/base/memory/shared_memory.h |
index b03d1d36f4ad3f03c7e2bbe0419aa28b87d04dfa..17dd60fa512fc241d24e4769a9f8cd1dd4eed8cc 100644 |
--- a/base/memory/shared_memory.h |
+++ b/base/memory/shared_memory.h |
@@ -221,18 +221,7 @@ class BASE_EXPORT SharedMemory { |
// Returns true on success, false otherwise. |
bool ShareToProcess(ProcessHandle process, |
SharedMemoryHandle* new_handle) { |
- return ShareToProcessCommon(process, new_handle, false); |
- } |
- |
- // Logically equivalent to: |
- // bool ok = ShareToProcess(process, new_handle); |
- // Close(); |
- // return ok; |
- // Note that the memory is unmapped by calling this method, regardless of the |
- // return value. |
- bool GiveToProcess(ProcessHandle process, |
- SharedMemoryHandle* new_handle) { |
- return ShareToProcessCommon(process, new_handle, true); |
+ return ShareToProcessCommon(process, new_handle); |
} |
#if defined(OS_POSIX) && (!defined(OS_MACOSX) || defined(OS_IOS)) && \ |
@@ -261,8 +250,7 @@ class BASE_EXPORT SharedMemory { |
#endif |
bool ShareToProcessCommon(ProcessHandle process, |
- SharedMemoryHandle* new_handle, |
- bool close_self); |
+ SharedMemoryHandle* new_handle); |
#if defined(OS_WIN) |
// If true indicates this came from an external source so needs extra checks |