summaryrefslogtreecommitdiffstats
path: root/ipc/attachment_broker_privileged.cc
diff options
context:
space:
mode:
authorerikchen <erikchen@chromium.org>2015-09-22 23:05:20 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-23 06:05:52 +0000
commit16f9112db34bc9fb02eba1830ca5643786591e6b (patch)
tree601a402fedd1bca2885bfe0d9df3bf8945a3bff4 /ipc/attachment_broker_privileged.cc
parentaae250a428acea8da431f3860c58f1d3964d5a7f (diff)
downloadchromium_src-16f9112db34bc9fb02eba1830ca5643786591e6b.zip
chromium_src-16f9112db34bc9fb02eba1830ca5643786591e6b.tar.gz
chromium_src-16f9112db34bc9fb02eba1830ca5643786591e6b.tar.bz2
Add UMA metrics to log attachment broker errors.
BUG=493414 Review URL: https://codereview.chromium.org/1281103002 Cr-Commit-Position: refs/heads/master@{#350312}
Diffstat (limited to 'ipc/attachment_broker_privileged.cc')
-rw-r--r--ipc/attachment_broker_privileged.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipc/attachment_broker_privileged.cc b/ipc/attachment_broker_privileged.cc
index da62ac0..0f3ac48 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