commit | 90e9f19d47138d4e6a7aa817ac86fcc853bcd054 | [log] [tgz] |
---|---|---|
author | Amin Hassani <[email protected]> | Wed Nov 18 14:20:56 2020 -0800 |
committer | Commit Bot <[email protected]> | Tue Nov 24 20:54:03 2020 +0000 |
tree | 8add9671f2659eb927e64fa974f280701144f06c | |
parent | 0468a76a02406851c197ba2cac663b687078a901 [diff] [blame] |
update_engine: Use PrefsInterface from SystemState There is no need to pass the Pref class around (at least not in cros) since we have the SystemState as the global context and we can get the pref from there. BUG=b:171829801 TEST=cros_workon_make --board reef --test update_engine Change-Id: I9f5fb8a118fab2ef0e188c42f746dafb1094972c Reviewed-on: https://chromium-review.googlesource.com/c/aosp/platform/system/update_engine/+/2548740 Tested-by: Amin Hassani <[email protected]> Commit-Queue: Jae Hoon Kim <[email protected]> Reviewed-by: Jae Hoon Kim <[email protected]>
diff --git a/common/excluder_stub.cc b/common/excluder_stub.cc index a251765..2b987fd 100644 --- a/common/excluder_stub.cc +++ b/common/excluder_stub.cc
@@ -24,7 +24,7 @@ namespace chromeos_update_engine { -std::unique_ptr<ExcluderInterface> CreateExcluder(PrefsInterface* prefs) { +std::unique_ptr<ExcluderInterface> CreateExcluder() { return std::make_unique<ExcluderStub>(); }