Make a test hook so we can mock the return code of ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled().
Otherwise, tests are forced to set the kMetricsReportingEnabled pref, which delves into the implementation details and may not work on all platforms. Replace usage of that pref in tests with the new hook.
Comment 1 by bugdroid1@chromium.org
, Sep 6 2016