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

Unified Diff: base/metrics/histogram_persistence.cc

Issue 1777223004: Revert of Collect information about failing histogram factory calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « base/metrics/histogram.cc ('k') | base/metrics/histogram_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram_persistence.cc
diff --git a/base/metrics/histogram_persistence.cc b/base/metrics/histogram_persistence.cc
index 34b3100b8551a25fd463c7438d0c480c84120652..f18d17528354329cd4995615d2451f6a52c59302 100644
--- a/base/metrics/histogram_persistence.cc
+++ b/base/metrics/histogram_persistence.cc
@@ -244,12 +244,6 @@
// validated below; the local copy is to ensure that the contents cannot
// be externally changed between validation and use.
PersistentHistogramData histogram_data = *histogram_data_ptr;
- CHECK_EQ(histogram_data.histogram_type, histogram_data_ptr->histogram_type);
- CHECK_EQ(histogram_data.flags, histogram_data_ptr->flags);
- CHECK_EQ(histogram_data.minimum, histogram_data_ptr->minimum);
- CHECK_EQ(histogram_data.maximum, histogram_data_ptr->maximum);
- CHECK_EQ(histogram_data.bucket_count, histogram_data_ptr->bucket_count);
- CHECK_EQ(histogram_data.ranges_checksum, histogram_data_ptr->ranges_checksum);
HistogramBase::Sample* ranges_data =
allocator->GetAsObject<HistogramBase::Sample>(histogram_data.ranges_ref,
@@ -294,8 +288,6 @@
HistogramBase::AtomicCount* logged_data =
counts_data + histogram_data.bucket_count;
- CHECK_LT(0, histogram_data.minimum);
- CHECK_LT(0, histogram_data.maximum);
std::string name(histogram_data_ptr->name);
HistogramBase* histogram = nullptr;
switch (histogram_data.histogram_type) {
« no previous file with comments | « base/metrics/histogram.cc ('k') | base/metrics/histogram_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698