summaryrefslogtreecommitdiffstats
path: root/content/browser/zygote_host
diff options
context:
space:
mode:
authorrickyz <rickyz@chromium.org>2015-02-20 17:52:59 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-21 01:53:23 +0000
commitce9e8b1061d20cc916222a687f8cc4e4b5efc7f0 (patch)
tree6a1b58b6b46b146cd20655ee02f9de9140448f1f /content/browser/zygote_host
parentcd52b1d018b5464584771f756d8f8ec37302421d (diff)
downloadchromium_src-ce9e8b1061d20cc916222a687f8cc4e4b5efc7f0.zip
chromium_src-ce9e8b1061d20cc916222a687f8cc4e4b5efc7f0.tar.gz
chromium_src-ce9e8b1061d20cc916222a687f8cc4e4b5efc7f0.tar.bz2
Add UMA stats for Linux sandboxing features.
BUG= Review URL: https://codereview.chromium.org/938243002 Cr-Commit-Position: refs/heads/master@{#317484}
Diffstat (limited to 'content/browser/zygote_host')
-rw-r--r--content/browser/zygote_host/zygote_host_impl_linux.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/browser/zygote_host/zygote_host_impl_linux.cc b/content/browser/zygote_host/zygote_host_impl_linux.cc
index 5d53b88..3506207 100644
--- a/content/browser/zygote_host/zygote_host_impl_linux.cc
+++ b/content/browser/zygote_host/zygote_host_impl_linux.cc
@@ -22,6 +22,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/metrics/histogram.h"
+#include "base/metrics/sparse_histogram.h"
#include "base/path_service.h"
#include "base/posix/eintr_wrapper.h"
#include "base/posix/unix_domain_socket_linux.h"
@@ -301,7 +302,9 @@ ssize_t ZygoteHostImpl::ReadReply(void* buf, size_t buf_len) {
sizeof(sandbox_status_)) {
return -1;
}
+
have_read_sandbox_status_word_ = true;
+ UMA_HISTOGRAM_SPARSE_SLOWLY("Linux.SandboxStatus", sandbox_status_);
}
return HANDLE_EINTR(read(control_fd_, buf, buf_len));