ProfileSyncServiceHarness: Always call AwaitSyncSetupCompletion in SetupSync
Before this CL, SetupSync would early-out if skip_passphrase_verification was set to true. I don't see a good reason for this, so now it always gets called. For reference, this logic was added in https://codereview.chromium.org/2716413003/, but I couldn't find an explanation for it there. This is an attempt to fix Sync's E2E tests. Locally, it fixes some of them, though others still fail. The problem was that a ClearServerData task got scheduled in SyncSchedulerImpl, but then before that task actually got a chance to run, the scheduler was put back into CONFIGURATION mode via SyncBackendHostImpl::ConfigureDataTypes (race condition). This change makes sure that ConfigureDataTypes (and its async tasks) gets completed before we try to clear server data. More details on the failure can be found on the bug. Bug: 835250 Change-Id: I392376d23930540ce9442911ec16e00a42abf043 Reviewed-on: https://chromium-review.googlesource.com/1028050Reviewed-by:vitaliii <vitaliii@chromium.org> Commit-Queue: Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#553588}
Showing
Please register or sign in to comment