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

Unified Diff: third_party/tcmalloc/chromium/src/heap-profiler.cc

Issue 18314006: Enable DMP for system Chromium WebView on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Do not indent preprocessor directives Created 7 years, 5 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
Index: third_party/tcmalloc/chromium/src/heap-profiler.cc
diff --git a/third_party/tcmalloc/chromium/src/heap-profiler.cc b/third_party/tcmalloc/chromium/src/heap-profiler.cc
index 0b07a5e8662da230e481839dcb5f62b521f9359d..eb993a50d5455ac2b63789ce0440435c464cdb63 100644
--- a/third_party/tcmalloc/chromium/src/heap-profiler.cc
+++ b/third_party/tcmalloc/chromium/src/heap-profiler.cc
@@ -654,7 +654,7 @@ static void HeapProfilerInit() {
return;
}
// We do a uid check so we don't write out files in a setuid executable.
-#ifdef HAVE_GETEUID
+#if !defined(__ANDROID__) && defined(HAVE_GETEUID)
if (getuid() != geteuid()) {
RAW_LOG(WARNING, ("HeapProfiler: ignoring " HEAPPROFILE " because "
"program seems to be setuid\n"));

Powered by Google App Engine
This is Rietveld 408576698