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

Unified Diff: chrome/common/metrics/metrics_log_base.cc

Issue 10834011: Refactor of Histogram related code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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: chrome/common/metrics/metrics_log_base.cc
===================================================================
--- chrome/common/metrics/metrics_log_base.cc (revision 148055)
+++ chrome/common/metrics/metrics_log_base.cc (working copy)
@@ -452,7 +452,7 @@
const Histogram::SampleSet& snapshot) {
DCHECK(!locked_);
DCHECK_NE(0, snapshot.TotalCount());
- snapshot.CheckSize(histogram);
+ DCHECK_EQ(histogram.bucket_count(), snapshot.size());
// We will ignore the MAX_INT/infinite value in the last element of range[].

Powered by Google App Engine
This is Rietveld 408576698