Add the linux_use_heapchecker GYP variable that should turn the tcmalloc heap
lleak checker on and off.
Review URL: http://codereview.chromium.org/1334002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42740 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/build/common.gypi b/build/common.gypi
index c22fb5c5..3b8f20e 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -205,6 +205,9 @@
     # Enable TCMalloc.
     'linux_use_tcmalloc%': 1,
 
+    # Disable TCMalloc's heapchecker.
+    'linux_use_heapchecker%': 0,
+
     # Set to select the Title Case versions of strings in GRD files.
     'use_titlecase_in_grd_files%': 0,
 
@@ -965,9 +968,15 @@
               }]
             ],
           }],
+          ['linux_use_heapchecker==1', {
+            'variables': {'linux_use_tcmalloc%': 1},
+          }],
           ['linux_use_tcmalloc==0', {
             'defines': ['NO_TCMALLOC'],
           }],
+          ['linux_use_heapchecker==0', {
+            'defines': ['NO_HEAPCHECKER'],
+          }],
         ],
       },
     }],