Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2079)

Unified Diff: net/disk_cache/stats_histogram.cc

Issue 12207058: Connect SparseHistogram with the rest of stats system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/stats_histogram.h ('k') | net/socket_stream/socket_stream_metrics_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/stats_histogram.cc
diff --git a/net/disk_cache/stats_histogram.cc b/net/disk_cache/stats_histogram.cc
index 3292a20c6ba8e9d0403d3fe46bd4ec4801ddf70c..7499ab23edb3af45e415938acce206b55601d0bd 100644
--- a/net/disk_cache/stats_histogram.cc
+++ b/net/disk_cache/stats_histogram.cc
@@ -45,7 +45,7 @@ StatsHistogram* StatsHistogram::FactoryGet(const std::string& name,
Sample minimum = 1;
Sample maximum = disk_cache::Stats::kDataSizesLength - 1;
size_t bucket_count = disk_cache::Stats::kDataSizesLength;
- Histogram* histogram = StatisticsRecorder::FindHistogram(name);
+ HistogramBase* histogram = StatisticsRecorder::FindHistogram(name);
if (!histogram) {
DCHECK(stats);
@@ -83,9 +83,9 @@ scoped_ptr<HistogramSamples> StatsHistogram::SnapshotSamples() const {
return samples.PassAs<HistogramSamples>();
}
-Histogram::Inconsistencies StatsHistogram::FindCorruption(
- const HistogramSamples& samples) const {
- return NO_INCONSISTENCIES; // This class won't monitor inconsistencies.
+int StatsHistogram::FindCorruption(const HistogramSamples& samples) const {
+ // This class won't monitor inconsistencies.
+ return HistogramBase::NO_INCONSISTENCIES;
}
} // namespace disk_cache
« no previous file with comments | « net/disk_cache/stats_histogram.h ('k') | net/socket_stream/socket_stream_metrics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698