commit | d6f60079258fa385b583dac9e770afd2ea3c9aeb | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@google.com> | Mon Oct 12 12:22:27 2015 -0700 |
committer | Alex Deymo <deymo@google.com> | Wed Oct 14 13:42:26 2015 -0700 |
tree | 6413655293d841b3904780ed8248572c9e7c9b69 | |
parent | 3f39d5cc753905874d8d93bef94f857b8808f19e [diff] |
update_manager: Make Prefs Variable async. The update_engine prefs, while stored in disk, are private daemon values changed by the daemon only. There was a 5 minutes delay between changing this value and the update policy checking it again, and there was a log spam every 5 minutes due to policy re-evaluations. This patch makes these Prefs-based variables async by implementing an observer pattern in the PrefsInterface and makes these variables async. Bug: chromium:367333 Test: Added uniittest. No more log spam every 5 minutes. Change-Id: I8b3f7072cc87515972c9f5b1ddcc54b865ffe238