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

Unified Diff: chrome/browser/browser_main_gtk.cc

Issue 489002: Linux: Implement RecordBreakpadStatusUMA. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years 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
« no previous file with comments | « chrome/app/breakpad_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « chrome/app/breakpad_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698