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

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

Issue 208263016: Revert "Enable DMP for system Chromium WebView on Android" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 d27e0b304aa2d0b7da8c13246beee173dec91563..da4ed49bea7cc701bd4857d60710395ecac64861 100644
--- a/third_party/tcmalloc/chromium/src/heap-profiler.cc
+++ b/third_party/tcmalloc/chromium/src/heap-profiler.cc
@@ -671,7 +671,7 @@ static void HeapProfilerInit() {
return;
}
// We do a uid check so we don't write out files in a setuid executable.
-#if !defined(__ANDROID__) && defined(HAVE_GETEUID)
+#ifdef 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