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

Unified Diff: components/update_client/utils.cc

Issue 2847023002: Parse update check run actions for the component updater. (Closed)
Patch Set: Added missing data file dependency. 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
« no previous file with comments | « components/update_client/update_response_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « components/update_client/update_response_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698