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

Unified Diff: base/memory/shared_memory_posix.cc

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Rebase. 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
Index: base/memory/shared_memory_posix.cc
diff --git a/base/memory/shared_memory_posix.cc b/base/memory/shared_memory_posix.cc
index 0187fb21ca13035d220048eb7f7111dc5240848a..5cb6c4242663b376b35a19d1e38079ed29bd6e9c 100644
--- a/base/memory/shared_memory_posix.cc
+++ b/base/memory/shared_memory_posix.cc
@@ -360,12 +360,6 @@ SharedMemoryHandle SharedMemory::GetReadOnlyHandle() {
return readonly_shm_.Duplicate();
}
-bool SharedMemory::ShareToProcessCommon(ProcessHandle process,
- SharedMemoryHandle* new_handle) {
- *new_handle = shm_.Duplicate();
- return new_handle->IsValid();
-}
-
bool SharedMemory::GetUniqueId(SharedMemory::UniqueId* id) const {
// This function is called just after mmap. fstat is a system call that might
// cause I/O. It's safe to call fstat here because mmap for shared memory is

Powered by Google App Engine
This is Rietveld 408576698