Index: chrome/browser/ui/toolbar/app_menu_model.cc |
diff --git a/chrome/browser/ui/toolbar/app_menu_model.cc b/chrome/browser/ui/toolbar/app_menu_model.cc |
index 2a143b8eaf06a6bc00553210425c1ca66c6a7a4c..f633887c2486a0b3b2218b1ca81d27defd708e7c 100644 |
--- a/chrome/browser/ui/toolbar/app_menu_model.cc |
+++ b/chrome/browser/ui/toolbar/app_menu_model.cc |
@@ -9,6 +9,7 @@ |
#include "base/command_line.h" |
#include "base/debug/debugging_flags.h" |
+#include "base/debug/profiler.h" |
#include "base/macros.h" |
#include "base/metrics/histogram.h" |
#include "base/prefs/pref_service.h" |
@@ -285,10 +286,10 @@ void ToolsMenuModel::Build(Browser* browser) { |
AddSeparator(ui::NORMAL_SEPARATOR); |
AddItemWithStringId(IDC_DEV_TOOLS, IDS_DEV_TOOLS); |
-#if BUILDFLAG(ENABLE_PROFILING) && !defined(NO_TCMALLOC) |
- AddSeparator(ui::NORMAL_SEPARATOR); |
- AddCheckItemWithStringId(IDC_PROFILING_ENABLED, IDS_PROFILING_ENABLED); |
-#endif |
+ if (base::debug::IsProfilingSupported()) { |
+ AddSeparator(ui::NORMAL_SEPARATOR); |
+ AddCheckItemWithStringId(IDC_PROFILING_ENABLED, IDS_PROFILING_ENABLED); |
+ } |
} |
//////////////////////////////////////////////////////////////////////////////// |