Index: chrome/browser/chromeos/libc_close_tracking.cc |
diff --git a/chrome/browser/chromeos/libc_close_tracking.cc b/chrome/browser/chromeos/libc_close_tracking.cc |
index 260a116b5a2e664ed3e7064d42af3ccc765f6882..cdbde3f9fc637b48f5e62148e88beb67af58d033 100644 |
--- a/chrome/browser/chromeos/libc_close_tracking.cc |
+++ b/chrome/browser/chromeos/libc_close_tracking.cc |
@@ -11,6 +11,7 @@ |
#include <unordered_map> |
#include "base/debug/crash_logging.h" |
+#include "base/debug/debugging_flags.h" |
#include "base/debug/stack_trace.h" |
#include "base/logging.h" |
#include "base/macros.h" |
@@ -119,7 +120,7 @@ int CloseOverride(int fd) { |
// Capture stack for successful close. |
if (ret == 0) { |
-#if HAVE_TRACE_STACK_FRAME_POINTERS && !defined(MEMORY_SANITIZER) |
+#if BUILDFLAG(CAN_UNWIND_WITH_FRAME_POINTERS) && !defined(MEMORY_SANITIZER) |
// Use TraceStackFramePointers because the backtrack() based default |
// capturing gets only the last stack frame and is not useful. |
// With the exception of when MSAN is enabled. See comments for why |