update_engine: UM: UpdateCheckAllowed now considers interactive update requests.
This is necessary so we can delegate handling of all update checks to
the UpdateManager, allowing us to share logic between the two cases and
eliminate multiple entry point to UpdateAttempter::Update() and handling
of interference between these two processes. Instead, these are all
handled naturally by the UpdateManager.
BUG=chromium:394389
TEST=Unit tests.
Change-Id: I32a1ab917e5aeb5c2da1953d8b0ffa8c9d8d62f9
Reviewed-on: https://chromium-review.googlesource.com/209100
Reviewed-by: Gilad Arnold <garnold@chromium.org>
Tested-by: Gilad Arnold <garnold@chromium.org>
Commit-Queue: Gilad Arnold <garnold@chromium.org>
diff --git a/update_manager/updater_provider.h b/update_manager/updater_provider.h
index f7a7648..ec1ca8a 100644
--- a/update_manager/updater_provider.h
+++ b/update_manager/updater_provider.h
@@ -82,6 +82,10 @@
// A server-dictated update check interval in seconds, if one was given.
virtual Variable<unsigned int>* var_server_dictated_poll_interval() = 0;
+ // A variable denoting whether a request for an interactive update was
+ // received but no update check performed yet.
+ virtual Variable<bool>* var_interactive_update_requested() = 0;
+
protected:
UpdaterProvider() {}