Add Installer.TimeToRebootMinutes metric
This patch introduces a new metric for tracking the duration between
when an update has successfully completed (and the user is presented
with the "reboot arrow" in the panel) and when the system has booted
into the new update.
BUG=chromium:248800
TEST=New unit test + Unit tests pass + Manual tested
Change-Id: Ia22cedc3b70f1d9c2598bed9469b34a257546a64
Reviewed-on: https://gerrit.chromium.org/gerrit/59132
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: David Zeuthen <zeuthen@chromium.org>
Commit-Queue: David Zeuthen <zeuthen@chromium.org>
diff --git a/update_attempter.h b/update_attempter.h
index d33d69e..a9dadf0 100644
--- a/update_attempter.h
+++ b/update_attempter.h
@@ -171,6 +171,9 @@
// |cancel_reason| is untouched.
bool ShouldCancel(ErrorCode* cancel_reason);
+ // Called at update_engine startup to do various house-keeping.
+ void UpdateEngineStarted();
+
private:
// Update server URL for automated lab test.
static const char* const kTestUpdateUrl;