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

Unified Diff: base/process/memory.cc

Issue 2601573002: mac: Hook up allocator shim. (Closed)
Patch Set: Clean up. 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
Index: base/process/memory.cc
diff --git a/base/process/memory.cc b/base/process/memory.cc
index 6349c08ca0a78643753564943b15509717cb303a..297410851f82b1f2641c72c38fdfee81563a07ad 100644
--- a/base/process/memory.cc
+++ b/base/process/memory.cc
@@ -30,9 +30,6 @@ void TerminateBecauseOutOfMemory(size_t size) {
#endif
-// Defined in memory_mac.mm for Mac.
-#if !defined(OS_MACOSX)
-
bool UncheckedCalloc(size_t num_items, size_t size, void** result) {
const size_t alloc_size = num_items * size;
@@ -49,6 +46,4 @@ bool UncheckedCalloc(size_t num_items, size_t size, void** result) {
return true;
}
-#endif
-
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698