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

Unified Diff: update_attempter.cc

Issue 3275006: AU: Implement server-dictated poll interval. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: rebase to head Created 10 years, 4 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 | « update_attempter.h ('k') | update_check_scheduler.h » ('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 694e7748178669f609c1db5d1fdebf9f8a764a81..a1568a923d266cd64bae69e890351eec93616568 100644
--- a/update_attempter.cc
+++ b/update_attempter.cc
@@ -297,6 +297,12 @@ void UpdateAttempter::ActionCompleted(ActionProcessor* processor,
// If the request is not an event, then it's the update-check.
if (!omaha_request_action->IsEvent()) {
http_response_code_ = omaha_request_action->GetHTTPResponseCode();
+ // Forward the server-dictated poll interval to the update check
+ // scheduler, if any.
+ if (update_check_scheduler_) {
+ update_check_scheduler_->set_poll_interval(
+ omaha_request_action->GetOutputObject().poll_interval);
+ }
}
}
if (code != kActionCodeSuccess) {
« no previous file with comments | « update_attempter.h ('k') | update_check_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698