summaryrefslogtreecommitdiffstats
path: root/webkit/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/extensions')
-rw-r--r--webkit/extensions/v8/heap_profiler_extension.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/extensions/v8/heap_profiler_extension.cc b/webkit/extensions/v8/heap_profiler_extension.cc
index d51d4108..ab20380 100644
--- a/webkit/extensions/v8/heap_profiler_extension.cc
+++ b/webkit/extensions/v8/heap_profiler_extension.cc
@@ -6,7 +6,7 @@
#include "base/basictypes.h"
-#if defined(OS_LINUX) && defined(USE_TCMALLOC)
+#if defined(USE_TCMALLOC) && !defined(OS_WIN)
#include "third_party/tcmalloc/chromium/src/google/heap-profiler.h"
#endif
@@ -60,7 +60,7 @@ class HeapProfilerWrapper : public v8::Extension {
return v8::Handle<v8::FunctionTemplate>();
}
-#if defined(OS_LINUX) && defined(USE_TCMALLOC)
+#if defined(USE_TCMALLOC) && !defined(OS_WIN)
static v8::Handle<v8::Value> HeapProfilerStart(const v8::Arguments& args) {
if (args.Length() >= 1 && args[0]->IsString()) {
v8::Local<v8::String> js_prefix = args[0]->ToString();