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

Unified Diff: components/update_client/update_response.h

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/update_response.h
diff --git a/components/update_client/update_response.h b/components/update_client/update_response.h
index 5f7ca5728717d2486ea5ee46d1f57d57f2b1a67b..bfce8e4e9be049ab78197185cfae1186913cc54b 100644
--- a/components/update_client/update_response.h
+++ b/components/update_client/update_response.h
@@ -72,12 +72,12 @@ class UpdateResponse {
// Attributes for the full update.
std::string name;
std::string hash_sha256;
- int size;
+ int size = 0;
// Attributes for the differential update.
std::string namediff;
std::string hashdiff_sha256;
- int sizediff;
+ int sizediff = 0;
};
Manifest();
@@ -113,6 +113,10 @@ class UpdateResponse {
static const char kCohort[];
static const char kCohortHint[];
static const char kCohortName[];
+
+ // Contains the run action returned by the server as part of an update
+ // check response.
+ std::string action_run;
};
static const int kNoDaystart = -1;
@@ -122,9 +126,10 @@ class UpdateResponse {
~Results();
// This will be >= 0, or kNoDaystart if the <daystart> tag was not present.
- int daystart_elapsed_seconds;
+ int daystart_elapsed_seconds = kNoDaystart;
+
// This will be >= 0, or kNoDaystart if the <daystart> tag was not present.
- int daystart_elapsed_days;
+ int daystart_elapsed_days = kNoDaystart;
std::vector<Result> list;
};

Powered by Google App Engine
This is Rietveld 408576698