summaryrefslogtreecommitdiffstats
path: root/components/nacl
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-31 21:45:46 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-31 21:45:46 +0000
commite7227e550e7298f07bb6f5f96a39a1137054ebdd (patch)
tree58fbd05a3e2cb81b39740fd7677ff700c7c1de1e /components/nacl
parentabb43f5550cb37eece1379eef8d1d19e86b49afe (diff)
downloadchromium_src-e7227e550e7298f07bb6f5f96a39a1137054ebdd.zip
chromium_src-e7227e550e7298f07bb6f5f96a39a1137054ebdd.tar.gz
chromium_src-e7227e550e7298f07bb6f5f96a39a1137054ebdd.tar.bz2
Pepper: Move some histogram code out of plugin.
This is a tiny change that moves PNaCl cache hit histogram logic out of the trusted plugin. BUG=none Review URL: https://codereview.chromium.org/423363003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286897 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/nacl')
-rw-r--r--components/nacl/renderer/ppb_nacl_private_impl.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/nacl/renderer/ppb_nacl_private_impl.cc b/components/nacl/renderer/ppb_nacl_private_impl.cc
index b814a9a..5c7b9f9 100644
--- a/components/nacl/renderer/ppb_nacl_private_impl.cc
+++ b/components/nacl/renderer/ppb_nacl_private_impl.cc
@@ -1602,6 +1602,7 @@ class PexeDownloader : public blink::WebURLLoaderClient {
virtual void didGetNexeFd(int32_t pp_error,
bool cache_hit,
PP_FileHandle file_handle) {
+ HistogramEnumerate("NaCl.Perf.PNaClCache.IsHit", cache_hit, 2);
if (cache_hit) {
stream_handler_->DidCacheHit(stream_handler_user_data_, file_handle);