Commit f475744f authored by Yusuke Sato's avatar Yusuke Sato Committed by Commit Bot

arc: Make metrics.mojom's UMA recording work for arcvm builds

BUG=b:123416853
BUG=b:123433252
TEST=manual

Change-Id: I8d87be071f3398e431274e7608809d2494019104
Reviewed-on: https://chromium-review.googlesource.com/c/1436491Reviewed-by: default avatarHidehiko Abe <hidehiko@chromium.org>
Commit-Queue: Yusuke Sato <yusukes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#628017}
parent 05c0d73f
......@@ -279,7 +279,18 @@ void ArcMetricsService::ReportBootProgress(
return;
}
// Retrieve ARC start time from session manager.
if (IsArcVmEnabled()) {
// For VM builds, do not call into session_manager since we don't use it
// for the builds. Using base::TimeTicks() is fine for now because 1) the
// clocks in host and guest are not synchronized, and 2) the guest does not
// support mini container.
// TODO(yusukes): Once the guest supports mini container (details TBD), we
// should have the guest itself report the timing of the upgrade.
OnArcStartTimeRetrieved(std::move(events), boot_type, base::TimeTicks());
return;
}
// Retrieve ARC full container's start time from session manager.
chromeos::SessionManagerClient* session_manager_client =
chromeos::DBusThreadManager::Get()->GetSessionManagerClient();
session_manager_client->GetArcStartTime(base::BindOnce(
......
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