diff options
author | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-10 23:57:57 +0000 |
---|---|---|
committer | zea@chromium.org <zea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-10 23:57:57 +0000 |
commit | 866d04490b7479cc6d8553de9c1f5d15bf5bfa6b (patch) | |
tree | c692cdc2fe55ecad364fb8faa27ff4629f31b499 /sync/internal_api/public/util | |
parent | 49fbef9e739a9d0ea1c4f1f83e0eec1aee57fb9b (diff) | |
download | chromium_src-866d04490b7479cc6d8553de9c1f5d15bf5bfa6b.zip chromium_src-866d04490b7479cc6d8553de9c1f5d15bf5bfa6b.tar.gz chromium_src-866d04490b7479cc6d8553de9c1f5d15bf5bfa6b.tar.bz2 |
[Sync] Add support for retrying a getupdates due to a context change
We detect a context conflict using the version value, and if detected force the
getupdates to retry.
BUG=360280
Review URL: https://codereview.chromium.org/232003005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@263134 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api/public/util')
-rw-r--r-- | sync/internal_api/public/util/syncer_error.cc | 1 | ||||
-rw-r--r-- | sync/internal_api/public/util/syncer_error.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sync/internal_api/public/util/syncer_error.cc b/sync/internal_api/public/util/syncer_error.cc index e7cb66f..81805d2 100644 --- a/sync/internal_api/public/util/syncer_error.cc +++ b/sync/internal_api/public/util/syncer_error.cc @@ -28,6 +28,7 @@ const char* GetSyncerErrorString(SyncerError value) { ENUM_CASE(SERVER_RESPONSE_VALIDATION_FAILED); ENUM_CASE(SERVER_RETURN_DISABLED_BY_ADMIN); ENUM_CASE(SERVER_MORE_TO_DOWNLOAD); + ENUM_CASE(DATATYPE_TRIGGERED_RETRY); ENUM_CASE(SYNCER_OK); } NOTREACHED(); diff --git a/sync/internal_api/public/util/syncer_error.h b/sync/internal_api/public/util/syncer_error.h index 02da22c..1a5ec79 100644 --- a/sync/internal_api/public/util/syncer_error.h +++ b/sync/internal_api/public/util/syncer_error.h @@ -31,6 +31,9 @@ enum SYNC_EXPORT_PRIVATE SyncerError { SERVER_RESPONSE_VALIDATION_FAILED, SERVER_RETURN_DISABLED_BY_ADMIN, + // A datatype decided the sync cycle needed to be performed again. + DATATYPE_TRIGGERED_RETRY, + SERVER_MORE_TO_DOWNLOAD, SYNCER_OK |