diff options
author | zea <zea@chromium.org> | 2015-05-13 10:42:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-13 17:43:26 +0000 |
commit | 3777d8727d7b4caedfb72bfdcbe2fea1f1d1d594 (patch) | |
tree | 40d9ae71927722ec479e0cec1334eb7f4e0d73b7 /sync/internal_api/test | |
parent | a28d21d2dd33c3b1e44a67b8e396a1478c7b2b62 (diff) | |
download | chromium_src-3777d8727d7b4caedfb72bfdcbe2fea1f1d1d594.zip chromium_src-3777d8727d7b4caedfb72bfdcbe2fea1f1d1d594.tar.gz chromium_src-3777d8727d7b4caedfb72bfdcbe2fea1f1d1d594.tar.bz2 |
[Sync] Refactoring polling to be reliable.
Polling is now an important component of sync health, as it can sometimes be
the only time we'll query for certain datatypes. As such, the following
has changed:
- Polls that fail will be retried (with backoff).
- As such, the logic to force a poll after an auth error isn't needed anymore
- The last successful poll time will be persisted in the sync prefs.
- On startup, schedule the first poll for last_poll_time + poll_interval
(or Now(), whichever is latest).
- Receiving a new poll interval from the server will update the poll timer
- The poll timer is now a one shot timer, and only restarts on success
- Some code cleanup to make the above more straightforward
BUG=482154
Review URL: https://codereview.chromium.org/1132013004
Cr-Commit-Position: refs/heads/master@{#329669}
Diffstat (limited to 'sync/internal_api/test')
-rw-r--r-- | sync/internal_api/test/fake_sync_manager.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sync/internal_api/test/fake_sync_manager.cc b/sync/internal_api/test/fake_sync_manager.cc index 43b6eb6..94ebdac 100644 --- a/sync/internal_api/test/fake_sync_manager.cc +++ b/sync/internal_api/test/fake_sync_manager.cc @@ -118,7 +118,7 @@ void FakeSyncManager::UpdateCredentials(const SyncCredentials& credentials) { } void FakeSyncManager::StartSyncingNormally( - const ModelSafeRoutingInfo& routing_info) { + const ModelSafeRoutingInfo& routing_info, base::Time last_poll_time) { // Do nothing. } |