[histogram] Make histograms more resistant to overflows.

Instead of calculating deltas from cumulative snapshots, store unlogged
histogram samples in a separate HistogramSample object.
This will reduce overflows from long-running sessions given that data
between UMA pings fits into 32-bit integer.

BUG=719446

Review-Url: https://codereview.chromium.org/2867303004
Cr-Commit-Position: refs/heads/master@{#471359}


CrOS-Libchrome-Original-Commit: 498c838a685f07dda12f74620f9a13ae0cf62383
7 files changed
tree: 8212fd990768cdd93595de5592674883f7d34fd3
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/