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

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

Issue 1453383002: base: Make shared memory backed by Mach primitives by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Force a POSIX test to use POSIX shared memory. 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 58839dbb4297d48529d8cc9da891a7a7fce9ec63..9dc63d63a6c0e5360fdddbd86f07a99f31303b8a 100644
--- a/content/browser/loader/resource_buffer.cc
+++ b/content/browser/loader/resource_buffer.cc
@@ -54,11 +54,7 @@ bool ResourceBuffer::Initialize(int buffer_size,
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