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 <firstname.lastname@example.org>
Tested-by: Lutz Justen <email@example.com>
Reviewed-by: Luis Hector Chavez <firstname.lastname@example.org>
Reviewed-by: Dan Erat <email@example.com>
5 files changed