Commit 909b4a5c authored by Miriam Zimmerman's avatar Miriam Zimmerman Committed by Commit Bot

OOBE: add test metrics consent failure logging.

BUG=None
TEST=tast -verbose run 100.127.92.23 arc.AppCrash

Change-Id: I04b8f0f91230802861c14cb67d2a16c901550db8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1848552Reviewed-by: default avatarRoman Sorokin [CET] <rsorokin@chromium.org>
Reviewed-by: default avatarIan Barkley-Yeung <iby@chromium.org>
Commit-Queue: Miriam Zimmerman <mutexlox@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704721}
parent 539b440e
......@@ -708,10 +708,19 @@ void WizardController::SkipToLoginForTesting(
const LoginScreenContext& context) {
VLOG(1) << "SkipToLoginForTesting.";
StartupUtils::MarkEulaAccepted();
// Enable metrics and crash collection, and verify that they're enabled.
ChangeMetricsReportingStateWithReply(
true,
base::BindRepeating(&WizardController::OnChangedMetricsReportingState,
weak_factory_.GetWeakPtr()));
if (!StatsReportingController::Get()->IsEnabled()) {
LOG(ERROR) << "StatsReportingController reports collection is NOT enabled";
}
if (!crash_reporter::GetUploadsEnabled()) {
LOG(ERROR) << "crash_reporter reports that crash uploads NOT enabled";
}
PerformPostEulaActions();
OnDeviceDisabledChecked(false /* device_disabled */);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment