Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(657)

Unified Diff: update_attempter.cc

Issue 3599025: AU: Verify that the applied delta update matches the server-sent hashes. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « download_action.cc ('k') | update_attempter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_attempter.cc
diff --git a/update_attempter.cc b/update_attempter.cc
index f408d82ed982779b806f5639a0426c8bc6b4aac7..1e3bf5db730f252134479075dbd843ff44e61c5b 100644
--- a/update_attempter.cc
+++ b/update_attempter.cc
@@ -519,11 +519,8 @@ void UpdateAttempter::DisableDeltaUpdateIfNeeded() {
void UpdateAttempter::MarkDeltaUpdateFailure() {
CHECK(!is_full_update_);
- // If a delta update fails after the downloading phase, don't try to resume it
- // the next time.
- if (status_ > UPDATE_STATUS_DOWNLOADING) {
- DeltaPerformer::ResetUpdateProgress(prefs_, false);
- }
+ // Don't try to resume a failed delta update.
+ DeltaPerformer::ResetUpdateProgress(prefs_, false);
int64_t delta_failures;
if (!prefs_->GetInt64(kPrefsDeltaUpdateFailures, &delta_failures) ||
delta_failures < 0) {
« no previous file with comments | « download_action.cc ('k') | update_attempter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698