summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/histogram_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/histogram_macros.h')
-rw-r--r--net/disk_cache/histogram_macros.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/net/disk_cache/histogram_macros.h b/net/disk_cache/histogram_macros.h
index 6d63dc8..17cd345 100644
--- a/net/disk_cache/histogram_macros.h
+++ b/net/disk_cache/histogram_macros.h
@@ -25,13 +25,8 @@
#define UMA_HISTOGRAM_AGE_MS(name, initial_time)\
UMA_HISTOGRAM_TIMES(name, Time::Now() - initial_time)
-#define UMA_HISTOGRAM_CACHE_ERROR(name, sample) do { \
- static scoped_refptr<Histogram> counter = \
- LinearHistogram::LinearHistogramFactoryGet(\
- (name), 1, 49, 50); \
- counter->SetFlags(kUmaTargetedHistogramFlag); \
- counter->Add(sample); \
- } while (0)
+#define UMA_HISTOGRAM_CACHE_ERROR(name, sample) \
+ UMA_HISTOGRAM_ENUMERATION(name, sample, 50)
#ifdef NET_DISK_CACHE_BACKEND_IMPL_CC_
#define BACKEND_OBJ this