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

Unified Diff: base/memory/shared_memory_mac.cc

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Compile error. 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 | « base/memory/shared_memory_handle.h ('k') | base/memory/shared_memory_mac_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/shared_memory_mac.cc
diff --git a/base/memory/shared_memory_mac.cc b/base/memory/shared_memory_mac.cc
index 67cd9e67724033ca1a0910504bb6414ad6ddea2c..bc03c9a039e99f7e09bcb054d638254bb496eb1e 100644
--- a/base/memory/shared_memory_mac.cc
+++ b/base/memory/shared_memory_mac.cc
@@ -277,16 +277,4 @@ SharedMemoryHandle SharedMemory::GetReadOnlyHandle() {
return new_handle;
}
-bool SharedMemory::Share(SharedMemoryHandle* new_handle) {
- DCHECK(shm_.IsValid());
- *new_handle = shm_.Duplicate();
- return new_handle->IsValid();
-}
-
-bool SharedMemory::ShareToProcessCommon(ProcessHandle process,
- SharedMemoryHandle* new_handle) {
- bool success = Share(new_handle);
- return success;
-}
-
} // namespace base
« no previous file with comments | « base/memory/shared_memory_handle.h ('k') | base/memory/shared_memory_mac_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698