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

Unified Diff: base/memory/shared_memory_handle_mac.cc

Issue 2555453002: Share field trial allocator on MacOS (Closed)
Patch Set: Created 4 years 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 | base/metrics/field_trial.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/shared_memory_handle_mac.cc
diff --git a/base/memory/shared_memory_handle_mac.cc b/base/memory/shared_memory_handle_mac.cc
index 92abb6136404d667b8ac0c7006514e7b5761896a..16b39b59d93fbc31e1fe115fdf6d40fe5f73fcdf 100644
--- a/base/memory/shared_memory_handle_mac.cc
+++ b/base/memory/shared_memory_handle_mac.cc
@@ -177,7 +177,6 @@ bool SharedMemoryHandle::MapAt(off_t offset,
case SharedMemoryHandle::POSIX:
*memory = mmap(nullptr, bytes, PROT_READ | (read_only ? 0 : PROT_WRITE),
MAP_SHARED, file_descriptor_.fd, offset);
-
Alexei Svitkine (slow) 2016/12/09 22:23:41 Nit: Remove extra diff here.
return *memory && *memory != reinterpret_cast<void*>(-1);
case SharedMemoryHandle::MACH:
DCHECK_EQ(pid_, GetCurrentProcId());
« no previous file with comments | « no previous file | base/metrics/field_trial.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698