diff options
author | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-11 00:47:19 +0000 |
---|---|---|
committer | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-11 00:47:19 +0000 |
commit | 18af9a22ada195c0ffc524fd4ab12b54e61e7663 (patch) | |
tree | b0806976a7bf941fb9162a65988ecb3cc4aab2c3 /chrome/test | |
parent | 93c1c66878c5f8fc76a4bd095ecbf537c2ed01e8 (diff) | |
download | chromium_src-18af9a22ada195c0ffc524fd4ab12b54e61e7663.zip chromium_src-18af9a22ada195c0ffc524fd4ab12b54e61e7663.tar.gz chromium_src-18af9a22ada195c0ffc524fd4ab12b54e61e7663.tar.bz2 |
sync: Fix backend configuration to support sync db refresh.
Removes the has_new bit in favor of checking if initial_sync_ended for requested types, and recreates the sync db on corruption (as we used to). These together mean we refresh the sync db on corruption. Also added some defensive dchecks.
To test this, I ripped out the test-only #ifdefs in SyncBackendHost so the tests use the real Initialize code path, and added a toolbox of stuff to control when we set initial sync ended bits during testing.
BUG=50965
TEST=DirectoryBackingStoreTest, ProfileSyncService* tests.
Review URL: http://codereview.chromium.org/3099001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55644 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
0 files changed, 0 insertions, 0 deletions