commit | 53556eccd206bacd5c9c8bb6605bcceb1bcb6190 | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@chromium.org> | Mon Mar 17 10:05:57 2014 -0700 |
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | Fri Mar 21 23:59:36 2014 +0000 |
tree | 81f5537eebc863cb88eaa18a1cae638b42021720 | |
parent | 6f079a8d7507dee7ce954f480672793a5923184f [diff] |
PolicyManager: Schedule re-evaluations based on variable usage. This patch makes the EvaluationContext re-schedule a policy request based on the variables used by that method, waiting for the Async variables and polling the Poll variables on the suggested interval. In order to use the main loop functions from the EvaluationContext they were moved to its own file called event_loop.h. BUG=chromium:340871 TEST=Unit tests added. Change-Id: Ibfc52e4dfd12c5e1ef87b5ad9cc318f9821dcfdd Reviewed-on: https://chromium-review.googlesource.com/190424 Reviewed-by: Gilad Arnold <garnold@chromium.org> Commit-Queue: Alex Deymo <deymo@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org>