PM: Add an update engine provider.
The UpdaterProvider exports variables for querying the status of an
update process and related settings. Includes a concrete implementation
(RealUpdaterProvider), which currently links directly with update engine
code and pulls information through the SystemState object. Also
included is a fake implementation (FakeUpdaterProvider) for testing
purposes.
BUG=chromium:346914
TEST=Unit tests.
Change-Id: I6ed5b40f21e43537e78aebf4217d811e149f745b
Reviewed-on: https://chromium-review.googlesource.com/192232
Reviewed-by: Gilad Arnold <garnold@chromium.org>
Commit-Queue: Gilad Arnold <garnold@chromium.org>
Tested-by: Gilad Arnold <garnold@chromium.org>
diff --git a/real_system_state.cc b/real_system_state.cc
index ac1ea25..eb8a2ba 100644
--- a/real_system_state.cc
+++ b/real_system_state.cc
@@ -46,7 +46,7 @@
// Initialize the PolicyManager using the default State Factory.
policy_manager_.Init(
- chromeos_policy_manager::DefaultStateFactory(&dbus_, &clock_));
+ chromeos_policy_manager::DefaultStateFactory(&dbus_, this));
if (!payload_state_.Initialize(this))
return false;