Index: update_attempter.cc |
diff --git a/update_attempter.cc b/update_attempter.cc |
index 813968718b84b0ef27eb8409e2b768c7dd762215..3ea1c18ff3f9352364b2c717167400ee83e3ea7e 100644 |
--- a/update_attempter.cc |
+++ b/update_attempter.cc |
@@ -289,6 +289,7 @@ void UpdateAttempter::ProcessingDone(const ActionProcessor* processor, |
if (code == kActionCodeSuccess) { |
utils::WriteFile(kUpdateCompletedMarker, "", 0); |
prefs_->SetInt64(kPrefsDeltaUpdateFailures, 0); |
+ prefs_->SetString(kPrefsPreviousVersion, omaha_request_params_.app_version); |
DeltaPerformer::ResetUpdateProgress(prefs_, false); |
SetStatusAndNotify(UPDATE_STATUS_UPDATED_NEED_REBOOT); |