summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net
diff options
context:
space:
mode:
authorziadh@chromium.org <ziadh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-19 08:00:42 +0000
committerziadh@chromium.org <ziadh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-19 08:00:42 +0000
commit46f89e149da3971fcf52b778de939256fae4249a (patch)
tree24a85f97832b082072dd54035a89de4ca9cc86cf /chrome/browser/net
parenta110dd1ff6a3b8507ee164ababea537df52642cb (diff)
downloadchromium_src-46f89e149da3971fcf52b778de939256fae4249a.zip
chromium_src-46f89e149da3971fcf52b778de939256fae4249a.tar.gz
chromium_src-46f89e149da3971fcf52b778de939256fae4249a.tar.bz2
Compress and checksum pending logs that are going to be persisted. Persisted logs now have the following format:
[list_size, log1, log2, ..., log_n, checksum]. where each log is bzipped before being written. Upon reading the logs from disk, we verify the data and register whether we faced corruptions or not. r=jar Review URL: http://codereview.chromium.org/2936005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52885 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r--chrome/browser/net/url_info.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/net/url_info.cc b/chrome/browser/net/url_info.cc
index 002c4b7..fab27ad 100644
--- a/chrome/browser/net/url_info.cc
+++ b/chrome/browser/net/url_info.cc
@@ -104,7 +104,7 @@ void UrlInfo::RemoveFromQueue() {
}
// Make a custom linear histogram for the region from 0 to boundary.
const size_t kBucketCount = 52;
- static scoped_refptr<Histogram> histogram = LinearHistogram::FactoryGet(
+ static scoped_refptr<Histogram> histogram = LinearHistogram::FactoryTimeGet(
"DNS.QueueRecycledUnder2", TimeDelta(), kBoundary, kBucketCount,
Histogram::kUmaTargetedHistogramFlag);
histogram->AddTime(queue_duration_);