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

Unified Diff: base/allocator/debugallocation_shim.cc

Issue 11266019: Use tcmalloc's debugallocation for Debug builds (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable by default Created 8 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 | « base/allocator/allocator_shim.cc ('k') | build/common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/allocator/debugallocation_shim.cc
diff --git a/base/test/main_hook.cc b/base/allocator/debugallocation_shim.cc
similarity index 51%
copy from base/test/main_hook.cc
copy to base/allocator/debugallocation_shim.cc
index f1f196160d52da36db7a34ac3e9c8c8e7d17a19c..d1cf52a23ea9f181fa92d3880837b8e2fd1c784f 100644
--- a/base/test/main_hook.cc
+++ b/base/allocator/debugallocation_shim.cc
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/test/main_hook.h"
-
-#if !defined(OS_IOS)
-MainHook::MainHook(MainType main_func, int argc, char* argv[]) {}
+#if defined(TCMALLOC_FOR_DEBUGALLOCATION)
+#include "third_party/tcmalloc/chromium/src/debugallocation.cc"
+#else
+#include "third_party/tcmalloc/chromium/src/tcmalloc.cc"
#endif
« no previous file with comments | « base/allocator/allocator_shim.cc ('k') | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698