[Sync] Fix backup/rollback tests race conditions
commitb4c4ebc13f6b0edd0ac362659e8e89ebef555a88
authorzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 22 Aug 2014 00:30:10 +0000 (22 00:30 +0000)
committerzea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 22 Aug 2014 00:32:07 +0000 (22 00:32 +0000)
tree014e7e06c15ecd343ba5ac4b69a681e646aa989e
parentcdc6ee91da595592fb677b662c0d78ae0fdd7804
[Sync] Fix backup/rollback tests race conditions

The rollback tests now listen to both the ProfileSyncService state as well as
for the completion of the browsing data remover. The shutdown observer now
also listens directly to the ProfileSyncService, rather than polling every
second.

BUG=406005

Review URL: https://codereview.chromium.org/483883003

Cr-Commit-Position: refs/heads/master@{#291269}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291269 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/sync/profile_sync_service.cc
chrome/browser/sync/profile_sync_service.h
chrome/browser/sync/profile_sync_service_unittest.cc
chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc