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

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: Fix and add tests 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
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..ea8226455136883a48ccbd614d49942b846ddde8 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,8 @@ 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.
+int32 StatsHistogram::FindCorruption(const HistogramSamples& samples) const {
+ return base::NO_INCONSISTENCIES; // This class won't monitor inconsistencies.
}
} // namespace disk_cache
« chrome/browser/metrics/metrics_service.cc ('K') | « net/disk_cache/stats_histogram.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698