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

Unified Diff: ipc/attachment_broker_privileged.cc

Issue 1281103002: Add UMA metrics to log attachment broker errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from isherman Created 5 years, 3 months 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 | « ipc/attachment_broker_privileged.h ('k') | ipc/attachment_broker_privileged_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/attachment_broker_privileged.cc
diff --git a/ipc/attachment_broker_privileged.cc b/ipc/attachment_broker_privileged.cc
index da62ac0c06e87fd5f1d7d050c021cfe039f6408f..0f3ac48c7ed572bd236c413f14d3fc6e681f47bb 100644
--- a/ipc/attachment_broker_privileged.cc
+++ b/ipc/attachment_broker_privileged.cc
@@ -6,6 +6,7 @@
#include <algorithm>
+#include "base/metrics/histogram_macros.h"
#include "ipc/ipc_endpoint.h"
namespace IPC {
@@ -37,4 +38,9 @@ Sender* AttachmentBrokerPrivileged::GetSenderWithProcessId(base::ProcessId id) {
return *it;
}
+void AttachmentBrokerPrivileged::LogError(UMAError error) {
+ UMA_HISTOGRAM_ENUMERATION(
+ "IPC.AttachmentBrokerPrivileged.BrokerAttachmentError", error, ERROR_MAX);
+}
+
} // namespace IPC
« no previous file with comments | « ipc/attachment_broker_privileged.h ('k') | ipc/attachment_broker_privileged_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698