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

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

Issue 1804353002: [mojo-edk] Switch shared buffers to use Mach on OSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-mach-ports
Patch Set: Created 4 years, 9 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 | « no previous file | mojo/edk/system/shared_buffer_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 f3f9b70bc282861a49994c87f88f95218cb49058..614b19c0c0d4884d651e1bd1117fcf5062813636 100644
--- a/mojo/edk/embedder/platform_shared_buffer.cc
+++ b/mojo/edk/embedder/platform_shared_buffer.cc
@@ -175,8 +175,7 @@ bool PlatformSharedBuffer::Init() {
base::SharedMemoryCreateOptions options;
options.size = num_bytes_;
#if defined(OS_MACOSX) && !defined(OS_IOS)
- // TODO(crbug.com/582468): Support Mach shared memory.
- options.type = base::SharedMemoryHandle::POSIX;
+ options.type = base::SharedMemoryHandle::MACH;
#endif
shared_memory_.reset(new base::SharedMemory);
« no previous file with comments | « no previous file | mojo/edk/system/shared_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698