Add concurrency check to HistogramSnapshotManager.

Using ThreadChecker causes problems when outside code is doing its
own synchronization between multiple calling threads so remove that
and add an atomic to do a run-time concurrency CHECK.  This will
likely be removed in the future once it's well assured that concurrent
access is not the cause of the corrupted data structures.

Also, make known_histograms_ member "const" as it should have been from
the beginning.

BUG=719448, 600717

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


CrOS-Libchrome-Original-Commit: 947514553066c623a85712d05c3a01bd1bcbbffc
2 files changed
tree: 74023327b7f94183947587e13ed271494ab694ee
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/