diff options
author | Amin Hassani <ahassani@chromium.org> | 2020-11-04 20:46:08 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-14 02:44:18 +0000 |
commit | 538bd590de3245349050d38f9ca197deb3eaa2a4 (patch) | |
tree | 2fade0be22c2c6bda462aa49236257cae2ca9409 /metrics_utils.h | |
parent | 79fec2da41db55983cd45036deb17a2f76f934d8 (diff) |
update_engine: Make SystemState accessible from everywhere
SystemState is supposed to be a global context and is used lamost
everywhere. So instead of passing it to functions and keeping multiple
pointers to it, its better to do what we did in dlcservice and make it a
singleton class with a getter that can be get from everywhere.
BUG=b:171829801
TEST=unittests
Change-Id: I3b2de9394b7769b3911195ca52d61dbe49afd4dd
Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/system/update_engine/+/2521792
Commit-Queue: Amin Hassani <ahassani@chromium.org>
Tested-by: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Jae Hoon Kim <kimjae@chromium.org>
Diffstat (limited to 'metrics_utils.h')
-rw-r--r-- | metrics_utils.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/metrics_utils.h b/metrics_utils.h index 5952ec34..3aac4e5b 100644 --- a/metrics_utils.h +++ b/metrics_utils.h @@ -30,8 +30,6 @@ namespace chromeos_update_engine { -class SystemState; - namespace metrics_utils { // Transforms a ErrorCode value into a metrics::DownloadErrorCode. |