Sync tests: don't needlessly re-create ConfigurationRefresher
https://crrev.com/c/1030177 introduced lazy creation of the ConfigurationRefresher in SyncTest::InitializeInvalidations. However, it unconditionally re-created it for every Sync client. Re-creating it drops any previous observer registrations, which means the refresher would effectively only work for the *last* client. This CL fixes this by creating it only if it doesn't exist yet. Interestingly, this didn't seem to cause any problems in practice. Bug: 832019 Change-Id: Ic9df260fdc5b8955d591d96678b4e1500035067f Reviewed-on: https://chromium-review.googlesource.com/c/1261439Reviewed-by:Mikel Astiz <mastiz@chromium.org> Commit-Queue: Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#596654}
Showing
Please register or sign in to comment