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

Unified Diff: base/metrics/sparse_histogram.cc

Issue 11231025: Histogram argument related change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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: base/metrics/sparse_histogram.cc
diff --git a/base/metrics/sparse_histogram.cc b/base/metrics/sparse_histogram.cc
index bb9061c7550bce11dd61802cf5b5f80ec7b3438b..e4e16e82aea57422a7602f3839ce6ab36fd21ecc 100644
--- a/base/metrics/sparse_histogram.cc
+++ b/base/metrics/sparse_histogram.cc
@@ -26,6 +26,13 @@ HistogramBase* SparseHistogram::FactoryGet(const string& name, int32 flags) {
SparseHistogram::~SparseHistogram() {}
+bool SparseHistogram::HasConstructionArguments(Sample minimum,
+ Sample maximum,
+ size_t bucket_count) const {
+ // SparseHistogram never has min/max/bucket_count limit.
+ return false;
+}
+
void SparseHistogram::Add(Sample value) {
base::AutoLock auto_lock(lock_);
sample_counts_[value]++;

Powered by Google App Engine
This is Rietveld 408576698