diff options
author | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-14 02:58:23 +0000 |
---|---|---|
committer | rlarocque@chromium.org <rlarocque@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-05-14 02:58:23 +0000 |
commit | 31aa39ddb62a29bbff6b7073a71d2f513c6e06d7 (patch) | |
tree | c035fcb07a0f494ec4266fa49fa1c83a99bac519 /sync/sync_tests.gypi | |
parent | 20184248e067fa7d9235c16397f2504cfcf6783a (diff) | |
download | chromium_src-31aa39ddb62a29bbff6b7073a71d2f513c6e06d7.zip chromium_src-31aa39ddb62a29bbff6b7073a71d2f513c6e06d7.tar.gz chromium_src-31aa39ddb62a29bbff6b7073a71d2f513c6e06d7.tar.bz2 |
sync: Improve handling of bad UniquePositions
Makes the client assign a valid position to incoming bookmarks if the
server has not populated the required fields. This code should never be
triggered unless there is a bug in the server. This risks reordering
users' bookmarks, but that's probably preferable to a crash.
Detects bookmarks that do not have valid position information during
database load. If these corrupted bookmarks are detected, the entire
database is declared to be corrupt. Sync will then re-download
all of the user's data, which should fix the problem.
BUG=367247
Review URL: https://codereview.chromium.org/278153002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270308 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/sync_tests.gypi')
-rw-r--r-- | sync/sync_tests.gypi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sync/sync_tests.gypi b/sync/sync_tests.gypi index ea15c76..94cd52d 100644 --- a/sync/sync_tests.gypi +++ b/sync/sync_tests.gypi @@ -302,6 +302,7 @@ 'engine/sync_scheduler_unittest.cc', 'engine/syncer_proto_util_unittest.cc', 'engine/syncer_unittest.cc', + 'engine/syncer_util_unittest.cc', 'js/js_event_details_unittest.cc', 'js/sync_js_controller_unittest.cc', 'protocol/proto_enum_conversions_unittest.cc', |