Revert 64687 - Try to detect internal corruption of histogram instances.
Corruptions can include changes in bucket boundaries, large changes in sample counts (in a bucket), etc. We now detect problems, and don't forward the corrupt data any further. This means it won't exit the renderer and go to the browser if corrupt, and it won't exit the browser and be sent up via UMA if corrupt. IF the would-be corruption is caused by a race to snapshot the data, then a later snapshot should get the clean copy, and all data (across the precluded period) will be sent onward. BUG=61281 r=mbelshe Review URL: http://codereview.chromium.org/4174002 TBR=jar@chromium.org Review URL: http://codereview.chromium.org/4349002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64846 0039d316-1c4b-4281-b951-d872f2087c98
Showing
- base/metrics/histogram.cc 9 additions, 97 deletionsbase/metrics/histogram.cc
- base/metrics/histogram.h 5 additions, 56 deletionsbase/metrics/histogram.h
- base/metrics/histogram_unittest.cc 0 additions, 53 deletionsbase/metrics/histogram_unittest.cc
- chrome/common/metrics_helpers.cc 1 addition, 17 deletionschrome/common/metrics_helpers.cc
- chrome/renderer/renderer_histogram_snapshots.cc 4 additions, 19 deletionschrome/renderer/renderer_histogram_snapshots.cc
Please register or sign in to comment