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

Unified Diff: components/update_client/update_checker.cc

Issue 1889263002: Implement ping_freshness for update_client. (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
Index: components/update_client/update_checker.cc
diff --git a/components/update_client/update_checker.cc b/components/update_client/update_checker.cc
index ec888929dd7f2e64423a0a0cc91e51365be46133..f87bd8b0b4e5d9d0f1b382471c5061af18e51c88 100644
--- a/components/update_client/update_checker.cc
+++ b/components/update_client/update_checker.cc
@@ -82,8 +82,9 @@ std::string BuildUpdateCheckRequest(const Configurator& config,
base::StringAppendF(&app, " ap=\"%s\"", ap.c_str());
base::StringAppendF(&app, ">");
base::StringAppendF(&app, "<updatecheck />");
- base::StringAppendF(&app, "<ping rd=\"%d\" />",
- metadata.GetDateLastRollCall(item->id));
+ base::StringAppendF(&app, "<ping rd=\"%d\" ping_freshnes=\"%s\" />",
+ metadata.GetDateLastRollCall(item->id),
+ metadata.GetPingFreshness(item->id).c_str());
if (!item->component.fingerprint.empty()) {
base::StringAppendF(&app,
"<packages>"

Powered by Google App Engine
This is Rietveld 408576698