diff options
Diffstat (limited to 'chrome/browser/browser_main_gtk.cc')
-rw-r--r-- | chrome/browser/browser_main_gtk.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/chrome/browser/browser_main_gtk.cc b/chrome/browser/browser_main_gtk.cc index beeb702..e27fe0b 100644 --- a/chrome/browser/browser_main_gtk.cc +++ b/chrome/browser/browser_main_gtk.cc @@ -5,9 +5,15 @@ #include "chrome/browser/browser_main.h" #include "base/command_line.h" +#include "base/debug_util.h" #include "chrome/browser/browser_main_win.h" +#include "chrome/browser/metrics/metrics_service.h" #include "chrome/common/result_codes.h" +#if defined(USE_LINUX_BREAKPAD) +#include "chrome/app/breakpad_linux.h" +#endif + namespace Platform { void WillInitializeMainMessageLoop(const MainFunctionParams& parameters) { @@ -17,7 +23,12 @@ void DidEndMainMessageLoop() { } void RecordBreakpadStatusUMA(MetricsService* metrics) { - // TODO(port): http://crbug.com/21732 +#if defined(USE_LINUX_BREAKPAD) + metrics->RecordBreakpadRegistration(IsCrashReporterEnabled()); +#else + metrics->RecordBreakpadRegistration(false); +#endif + metrics->RecordBreakpadHasDebugger(DebugUtil::BeingDebugged()); } } // namespace Platform |