diff options
Diffstat (limited to 'chromium/base/metrics/sparse_histogram.cc')
-rw-r--r-- | chromium/base/metrics/sparse_histogram.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/chromium/base/metrics/sparse_histogram.cc b/chromium/base/metrics/sparse_histogram.cc index 61635d0417f..6d2720c2369 100644 --- a/chromium/base/metrics/sparse_histogram.cc +++ b/chromium/base/metrics/sparse_histogram.cc @@ -238,13 +238,9 @@ HistogramBase* SparseHistogram::DeserializeInfoImpl(PickleIterator* iter) { } void SparseHistogram::GetParameters(DictionaryValue* params) const { - // TODO(kaiwang): Implement. (See HistogramBase::WriteJSON.) -} - -void SparseHistogram::GetCountAndBucketData(Count* count, - int64_t* sum, - ListValue* buckets) const { - // TODO(kaiwang): Implement. (See HistogramBase::WriteJSON.) + // Unlike Histogram::GetParameters, only set the type here, and no other + // params. The other params do not make sense for sparse histograms. + params->SetString("type", HistogramTypeToString(GetHistogramType())); } void SparseHistogram::WriteAsciiBody(const HistogramSamples& snapshot, |