| Index: chrome/browser/browser_main_gtk.cc
|
| ===================================================================
|
| --- chrome/browser/browser_main_gtk.cc (revision 34212)
|
| +++ chrome/browser/browser_main_gtk.cc (working copy)
|
| @@ -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 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
|
|
|