Parse and add manifest version to the Omaha Response object.
This CL adds the version of the update we're updating to to the Omaha
response object and removes the use of DisplayVersion. DisplayVersion is
from the Omaha Protocol v1, and v2 and has never been used or relied
upon in the update engine.
Protocol is described here:
https://code.google.com/p/omaha/wiki/ServerProtocol
Manifest version should always describe the version of the application we are
updating to as is described by the manifest.
BUG=chromium:252527
TEST=Unittests + devserver image_to_live test.
Change-Id: I9afaa8af3c21813f19d88abf437f35b024d31985
Reviewed-on: https://gerrit.chromium.org/gerrit/59498
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
Commit-Queue: Chris Sosa <sosa@chromium.org>
diff --git a/omaha_response.h b/omaha_response.h
index db39868..85cec5a 100644
--- a/omaha_response.h
+++ b/omaha_response.h
@@ -35,7 +35,7 @@
int poll_interval;
// These are only valid if update_exists is true:
- std::string display_version;
+ std::string version;
// The ordered list of URLs in the Omaha response. Each item is a complete
// URL (i.e. in terms of Omaha XML, each value is a urlBase + packageName)