Cherry-pick "Allow PolicyLoadStatusSample to override reporting method"
Revision in chromium/src: 6410def39290ed829e0d56b92ab03ddd985a0c04
This cherry-pick is required to fix a memory leak in Chrome OS.
PolicyLoadStatusSample reports stats to base::LinearHistogram by
default, which does not work in Chrome OS. This CL introduces
PolicyLoadStatusSampler, which just gathers samples without doing
anything with them and can be used in preg_parser.
Commit-Ready: Lutz Justen <email@example.com>
Tested-by: Lutz Justen <firstname.lastname@example.org>
Reviewed-by: Luis Hector Chavez <email@example.com>
Reviewed-by: Dan Erat <firstname.lastname@example.org>
5 files changed