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

Unified Diff: content/browser/loader/resource_buffer.cc

Issue 1472313002: Revert of base: Make shared memory backed by Mach primitives by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_buffer.cc
diff --git a/content/browser/loader/resource_buffer.cc b/content/browser/loader/resource_buffer.cc
index 9dc63d63a6c0e5360fdddbd86f07a99f31303b8a..58839dbb4297d48529d8cc9da891a7a7fce9ec63 100644
--- a/content/browser/loader/resource_buffer.cc
+++ b/content/browser/loader/resource_buffer.cc
@@ -54,7 +54,11 @@
min_alloc_size_ = min_allocation_size;
max_alloc_size_ = max_allocation_size;
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+ return shared_mem_.CreateAndMapAnonymousMach(buf_size_);
+#else
return shared_mem_.CreateAndMapAnonymous(buf_size_);
+#endif // defined(OS_MACOSX) && !defined(OS_IOS)
}
bool ResourceBuffer::IsInitialized() const {
« no previous file with comments | « base/memory/shared_memory_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698