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.


Change-Id: I8cbac293fc6c24ee97dc514d631612a0debbd162
Commit-Ready: Lutz Justen <>
Tested-by: Lutz Justen <>
Reviewed-by: Luis Hector Chavez <>
Reviewed-by: Dan Erat <>
5 files changed