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

Unified Diff: base/allocator/allocator_check.cc

Issue 1839783005: Revert of Allocator shims working on VS2015. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months 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.gyp ('k') | base/allocator/allocator_shim_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/allocator/allocator_check.cc
diff --git a/base/allocator/allocator_check.cc b/base/allocator/allocator_check.cc
index 82a9067fc01f82195510bc925eb6d903d31f51b0..a708f0faf3cc1c60c14839f1dc3e44522a7f3120 100644
--- a/base/allocator/allocator_check.cc
+++ b/base/allocator/allocator_check.cc
@@ -6,10 +6,6 @@
#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
@@ -17,9 +13,15 @@
namespace base {
namespace allocator {
+// Defined in allocator_shim_win.cc .
+// TODO(primiano): replace with an include once base can depend on allocator.
+#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 _set_new_mode() is called.
+ // Set by allocator_shim_win.cc when the shimmed _heap_init() 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.
« no previous file with comments | « base/allocator/allocator.gyp ('k') | base/allocator/allocator_shim_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698