PM: New system provider variable for whether OOBE is complete.
This uses logic found in Hardware::IsOOBEComplete(). It is needed for
deciding whether scattering should be applied.
BUG=chromium:358323
TEST=Unit tests.
Change-Id: I745365e84fc09dd234cd5f65ec0a2012a9024cdd
Reviewed-on: https://chromium-review.googlesource.com/200571
Reviewed-by: Alex Deymo <deymo@chromium.org>
Tested-by: Gilad Arnold <garnold@chromium.org>
Commit-Queue: Gilad Arnold <garnold@chromium.org>
diff --git a/policy_manager/system_provider.h b/policy_manager/system_provider.h
index d18955b..dae3a9a 100644
--- a/policy_manager/system_provider.h
+++ b/policy_manager/system_provider.h
@@ -24,6 +24,9 @@
// Returns whether this is an official Chrome OS build.
virtual Variable<bool>* var_is_official_build() = 0;
+ // Returns a variable that tells whether OOBE was completed.
+ virtual Variable<bool>* var_is_oobe_complete() = 0;
+
protected:
SystemProvider() {}