diff options
Diffstat (limited to 'chrome/browser/net/dns_host_info.cc')
| -rw-r--r-- | chrome/browser/net/dns_host_info.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/chrome/browser/net/dns_host_info.cc b/chrome/browser/net/dns_host_info.cc index 63eae34..755f54d 100644 --- a/chrome/browser/net/dns_host_info.cc +++ b/chrome/browser/net/dns_host_info.cc @@ -104,10 +104,11 @@ void DnsHostInfo::RemoveFromQueue() { } // Make a custom linear histogram for the region from 0 to boundary. const size_t kBucketCount = 52; - static LinearHistogram histogram("DNS.QueueRecycledUnder2", TimeDelta(), - kBoundary, kBucketCount); - histogram.SetFlags(kUmaTargetedHistogramFlag); - histogram.AddTime(queue_duration_); + static scoped_refptr<Histogram> histogram = + LinearHistogram::LinearHistogramFactoryGet("DNS.QueueRecycledUnder2", + TimeDelta(), kBoundary, kBucketCount); + histogram->SetFlags(kUmaTargetedHistogramFlag); + histogram->AddTime(queue_duration_); } void DnsHostInfo::SetPendingDeleteState() { |
