diff options
Diffstat (limited to 'net/disk_cache/histogram_macros.h')
| -rw-r--r-- | net/disk_cache/histogram_macros.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/disk_cache/histogram_macros.h b/net/disk_cache/histogram_macros.h index 6ff66ea..6d63dc8 100644 --- a/net/disk_cache/histogram_macros.h +++ b/net/disk_cache/histogram_macros.h @@ -26,9 +26,11 @@ UMA_HISTOGRAM_TIMES(name, Time::Now() - initial_time) #define UMA_HISTOGRAM_CACHE_ERROR(name, sample) do { \ - static LinearHistogram counter((name), 0, 49, 50); \ - counter.SetFlags(kUmaTargetedHistogramFlag); \ - counter.Add(sample); \ + static scoped_refptr<Histogram> counter = \ + LinearHistogram::LinearHistogramFactoryGet(\ + (name), 1, 49, 50); \ + counter->SetFlags(kUmaTargetedHistogramFlag); \ + counter->Add(sample); \ } while (0) #ifdef NET_DISK_CACHE_BACKEND_IMPL_CC_ |
