update_engine: Add metrics to duration to apply an update.
Add new metrics that record the time between an update being seen by the client
to the time when the update is actually applied.
This metric will be recorded only for Enterprise enrolled devices.
recorded when an update is applied while the
DeviceAutoUpdateTimeRestrictions device policy exists.
recorded when an update is applied without the policy.
TEST=run updater manually and checked chrome://histograms
Commit-Ready: May Lippert <email@example.com>
Tested-by: May Lippert <firstname.lastname@example.org>
Reviewed-by: Amin Hassani <email@example.com>
Reviewed-by: Sen Jiang <firstname.lastname@example.org>
13 files changed