Chromium Code Reviews| Index: base/allocator/allocator_check.cc |
| diff --git a/base/allocator/allocator_check.cc b/base/allocator/allocator_check.cc |
| index a708f0faf3cc1c60c14839f1dc3e44522a7f3120..82a9067fc01f82195510bc925eb6d903d31f51b0 100644 |
| --- a/base/allocator/allocator_check.cc |
| +++ b/base/allocator/allocator_check.cc |
| @@ -6,6 +6,10 @@ |
| #include "build/build_config.h" |
| +#if defined(OS_WIN) |
| +#include "base/allocator/allocator_shim_win.h" |
| +#endif |
| + |
| #if defined(OS_LINUX) |
| #include <malloc.h> |
| #endif |
| @@ -13,15 +17,9 @@ |
| namespace base { |
| namespace allocator { |
| -// Defined in allocator_shim_win.cc . |
| -// TODO(primiano): replace with an include once base can depend on allocator. |
|
Primiano Tucci (use gerrit)
2016/03/29 18:46:07
thanks, forgot about this :)
Will Harris
2016/03/29 18:56:20
Acknowledged.
|
| -#if defined(OS_WIN) && defined(ALLOCATOR_SHIM) |
| -extern bool g_is_win_shim_layer_initialized; |
| -#endif |
| - |
| bool IsAllocatorInitialized() { |
| #if defined(OS_WIN) && defined(ALLOCATOR_SHIM) |
| - // Set by allocator_shim_win.cc when the shimmed _heap_init() is called. |
| + // Set by allocator_shim_win.cc when the shimmed _set_new_mode() is called. |
| return g_is_win_shim_layer_initialized; |
| #elif defined(OS_LINUX) && defined(USE_TCMALLOC) |
| // From third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h. |