from gentoo chromium-tcmalloc-r1.patch --- chrome/renderer/chrome_render_process_observer.cc.orig 2012-05-16 20:01:13.000000000 +0200 +++ chrome/renderer/chrome_render_process_observer.cc 2012-05-16 20:01:41.000000000 +0200 @@ -35,7 +35,6 @@ #include "net/base/net_errors.h" #include "net/base/net_module.h" #include "third_party/sqlite/sqlite3.h" -#include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebCrossOriginPreflightResultCache.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" @@ -47,6 +45,11 @@ #include "base/win/iat_patch_function.h" #endif +#if defined(USE_TCMALLOC) +#include "third_party/tcmalloc/chromium/src/gperftools/heap-profiler.h" +#include "third_party/tcmalloc/chromium/src/gperftools/malloc_extension.h" +#endif + using WebKit::WebCache; using WebKit::WebCrossOriginPreflightResultCache; using WebKit::WebFontCache;