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

Unified Diff: components/update_client/utils.cc

Issue 2847023002: Parse update check run actions for the component updater. (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/src into run-action Created 3 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/utils.cc
diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc
index 39365cde8e79b94812d50d2c971c9f9d3d904781..93d7ac097e7cbbcc7ce5d8e876635527076533a1 100644
--- a/components/update_client/utils.cc
+++ b/components/update_client/utils.cc
@@ -95,6 +95,9 @@ std::string GetServicePack() {
} // namespace
+// Builds a protocol message. The protocol versions so far are:
+// * Version 3.1: it changes how the run actions are serialized.
+// * Version 3.0: it is the version implemented by the desktop updaters.
std::string BuildProtocolRequest(
const std::string& prod_id,
const std::string& browser_version,
@@ -107,7 +110,7 @@ std::string BuildProtocolRequest(
const std::unique_ptr<UpdaterState::Attributes>& updater_state_attributes) {
std::string request(
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
- "<request protocol=\"3.0\" ");
+ "<request protocol=\"3.1\" ");
if (!additional_attributes.empty())
base::StringAppendF(&request, "%s ", additional_attributes.c_str());

Powered by Google App Engine
This is Rietveld 408576698