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

Unified Diff: update_check_scheduler.cc

Issue 6836025: Add support to update_engine to poke Omaha after an update has been applied (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: Fixed bug where last ping day was not properly updated Created 9 years, 8 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
« update_attempter_unittest.cc ('K') | « update_check_scheduler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_check_scheduler.cc
diff --git a/update_check_scheduler.cc b/update_check_scheduler.cc
index 16f1929c2d65423cd68e3d3ca89195f5f7a1ad87..f9b45bd0435a73d5cfbbf7d7dbd5670ae3686538 100644
--- a/update_check_scheduler.cc
+++ b/update_check_scheduler.cc
@@ -137,7 +137,11 @@ void UpdateCheckScheduler::ScheduleNextCheck() {
}
void UpdateCheckScheduler::SetUpdateStatus(UpdateStatus status) {
- if (status == UPDATE_STATUS_IDLE) {
+ // We want to schedule the update checks for when we're idle as well as
+ // after we've successfully applied an update and waiting for the user
+ // to reboot to ensure our active count is accurate.
+ if (status == UPDATE_STATUS_IDLE ||
+ status == UPDATE_STATUS_UPDATED_NEED_REBOOT) {
ScheduleNextCheck();
}
}
« update_attempter_unittest.cc ('K') | « update_check_scheduler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698