Limit histograms to 1000 buckets.

More than 1000 buckets is probably an error and so make it obvious
to the user by a DCHECK and a reduced output.

Some histograms are known to already have more than this number
of buckets; whitelist those.

Bug: 915892
Change-Id: I79a562ec7b883f57b5721e2f0ecd52f955044f39
Reviewed-on: https://chromium-review.googlesource.com/c/1385120
Commit-Queue: Brian White <[email protected]>
Reviewed-by: Alexei Svitkine <[email protected]>
Cr-Commit-Position: refs/heads/master@{#618370}
4 files changed