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

Unified Diff: components/update_client/action_update_check.cc

Issue 1740333002: Allow fallback from https to http for component update checks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « components/update_client/action_update_check.h ('k') | components/update_client/ping_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/action_update_check.cc
diff --git a/components/update_client/action_update_check.cc b/components/update_client/action_update_check.cc
index 9e31eb6d33d30f8aa8d43e836ee709e8a53518f9..13455f5ae7fdb9494be670a979bd476149a73daa 100644
--- a/components/update_client/action_update_check.cc
+++ b/components/update_client/action_update_check.cc
@@ -97,9 +97,12 @@ void ActionUpdateCheck::Run(UpdateContext* update_context, Callback callback) {
void ActionUpdateCheck::UpdateCheckComplete(
int error,
- const UpdateResponse::Results& results) {
+ const UpdateResponse::Results& results,
+ int retry_after_sec) {
DCHECK(thread_checker_.CalledOnValidThread());
+ update_context_->retry_after_sec_ = retry_after_sec;
+
if (!error)
OnUpdateCheckSucceeded(results);
else
« no previous file with comments | « components/update_client/action_update_check.h ('k') | components/update_client/ping_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698