[AF] Reload from database to sort profiles

Profiles are sorted in the DB and not in the Personal Data Manager,
therefore, we need to reload them when the changes are done. =>
Call Refresh() each times there is no more change in the waiting
in the scheduling queue.

Bug: 920529
Change-Id: I7bc4337b881bac67185ed9ec279857fa6b207da4
Reviewed-on: https://chromium-review.googlesource.com/c/1406178
Commit-Queue: Parastoo Geranmayeh <parastoog@google.com>
Reviewed-by: Sebastien Seguin-Gagnon <sebsg@chromium.org>
Reviewed-by: Tatiana Gornak <melandory@chromium.org>
Reviewed-by: Mathieu Perreault <mathp@chromium.org>
Cr-Commit-Position: refs/heads/master@{#625339}
10 files changed