Add version information to install plan and GetStatus.
As per the TODO this information is useful for debugging and testing
changes i.e. I'd like to know what version I'm updating to. GetStatus
already supports getting this version but we never populate the field.
BUG=chromium:264505
TEST=Unittests + ran update_engine_client -update which uses GetStatus
to communicate status.
Change-Id: I5332e2f206d92aedba509cd5469e9610c88bcd03
Reviewed-on: https://gerrit.chromium.org/gerrit/63675
Commit-Queue: Chris Sosa <sosa@chromium.org>
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
diff --git a/install_plan.h b/install_plan.h
index c2f523e..3ec9d55 100644
--- a/install_plan.h
+++ b/install_plan.h
@@ -39,6 +39,7 @@
bool is_resume;
bool is_full_update;
std::string download_url; // url to download from
+ std::string version; // version we are installing.
uint64_t payload_size; // size of the payload
std::string payload_hash; // SHA256 hash of the payload