Android: Reset update progress when booted into new version. am: 1bafff885b am: 5d33884bcb
am: fd54cc1dee

Change-Id: I45ef56c315a9fc9733f6ec4382cc3101f8153e9b
diff --git a/update_attempter_android.cc b/update_attempter_android.cc
index abb4545..a9033b7 100644
--- a/update_attempter_android.cc
+++ b/update_attempter_android.cc
@@ -797,6 +797,11 @@
   metrics_utils::LoadAndReportTimeToReboot(
       metrics_reporter_.get(), prefs_, clock_.get());
   ClearMetricsPrefs();
+
+  // Also reset the update progress if the build version has changed.
+  if (!DeltaPerformer::ResetUpdateProgress(prefs_, false)) {
+    LOG(WARNING) << "Unable to reset the update progress.";
+  }
 }
 
 // Save the update start time. Reset the reboot count and attempt number if the