Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(560)

Issue 6104003: sync: use progress markers instead of timestamps during GetUpdates (Closed)

Created:
9 years, 11 months ago by ncarter (slow)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ncarter (slow), Paweł Hajdan Jr., tim (not reviewing), idana, Raghu Simha
Visibility:
Public.

Description

The sync server supports a new "progress token" scheme that allows data types to be requested with a different timestamp per datatype. The benefits of this approach are: - timestamps become opaque to the client, which makes - the client no longer has to rely on timestamps converging for all datatypes. - the server will send fewer redundant updates after enabling a new datatype. - the flexibility of the opaque field allows the server to implement other optimizations which will increase scalability & performance BUG=58217 TEST=manual test of sync (old profile+new profile), unit tests, integ tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71357

Patch Set 1 #

Patch Set 2 : Patch set for self-review. #

Patch Set 3 : Fixed about:sync #

Patch Set 4 : Down to just three failing tests #

Patch Set 5 : Fixed trybot patch issue #

Patch Set 6 : Linux compile fix. #

Patch Set 7 : Unit test fix. #

Patch Set 8 : Fixed Linux warning #

Patch Set 9 : For review #

Total comments: 30

Patch Set 10 : add an #include for <list> #

Total comments: 2

Patch Set 11 : Tim's fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+787 lines, -595 lines) Patch
M chrome/browser/sync/engine/all_status.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +5 lines, -61 lines 0 comments Download
M chrome/browser/sync/engine/all_status.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +27 lines, -24 lines 0 comments Download
M chrome/browser/sync/engine/download_updates_command.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +15 lines, -27 lines 0 comments Download
M chrome/browser/sync/engine/download_updates_command.cc View 3 chunks +8 lines, -15 lines 0 comments Download
M chrome/browser/sync/engine/download_updates_command_unittest.cc View 1 chunk +0 lines, -46 lines 0 comments Download
M chrome/browser/sync/engine/store_timestamps_command.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +25 lines, -18 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +18 lines, -7 lines 0 comments Download
M chrome/browser/sync/engine/syncapi.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -53 lines 0 comments Download
M chrome/browser/sync/engine/syncer_end_command.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/engine/syncer_proto_util.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +19 lines, -3 lines 0 comments Download
M chrome/browser/sync/engine/syncer_thread.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/syncer_thread_unittest.cc View 1 2 3 4 5 6 7 8 7 chunks +21 lines, -9 lines 0 comments Download
M chrome/browser/sync/engine/syncer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -9 lines 0 comments Download
M chrome/browser/sync/engine/verify_updates_command.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +11 lines, -17 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_harness.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +13 lines, -13 lines 0 comments Download
M chrome/browser/sync/sessions/session_state.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +12 lines, -20 lines 0 comments Download
M chrome/browser/sync/sessions/session_state.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +22 lines, -9 lines 0 comments Download
M chrome/browser/sync/sessions/status_controller.h View 1 2 3 4 5 6 7 8 9 10 6 chunks +13 lines, -22 lines 0 comments Download
M chrome/browser/sync/sessions/status_controller.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +15 lines, -48 lines 0 comments Download
M chrome/browser/sync/sessions/status_controller_unittest.cc View 3 chunks +0 lines, -13 lines 0 comments Download
M chrome/browser/sync/sessions/sync_session.cc View 1 2 3 4 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/sync/sessions/sync_session_unittest.cc View 1 2 3 9 chunks +39 lines, -26 lines 0 comments Download
M chrome/browser/sync/sync_ui_util.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/syncable/directory_backing_store.h View 1 2 3 4 5 6 7 4 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/sync/syncable/directory_backing_store.cc View 1 2 3 4 5 6 7 8 9 10 12 chunks +104 lines, -21 lines 0 comments Download
M chrome/browser/sync/syncable/directory_backing_store_unittest.cc View 1 2 3 4 5 6 7 6 chunks +170 lines, -1 line 0 comments Download
M chrome/browser/sync/syncable/model_type.h View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/model_type.cc View 1 1 chunk +51 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/syncable.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +17 lines, -38 lines 0 comments Download
M chrome/browser/sync/syncable/syncable.cc View 5 chunks +29 lines, -17 lines 0 comments Download
M chrome/browser/sync/syncable/syncable_unittest.cc View 1 2 3 4 chunks +0 lines, -17 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.h View 1 2 3 4 5 6 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/test/sync/engine/mock_connection_manager.h View 1 2 3 4 5 6 7 8 9 6 chunks +21 lines, -11 lines 0 comments Download
M chrome/test/sync/engine/mock_connection_manager.cc View 1 2 3 4 5 6 7 8 12 chunks +74 lines, -30 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ncarter (slow)
9 years, 11 months ago (2011-01-11 02:26:44 UTC) #1
Raghu Simha
Just a drive by comment -- no need to wait for an LGTM from me. ...
9 years, 11 months ago (2011-01-11 18:53:04 UTC) #2
tim (not reviewing)
looks nice! http://codereview.chromium.org/6104003/diff/20001/chrome/browser/sync/engine/all_status.cc File chrome/browser/sync/engine/all_status.cc (right): http://codereview.chromium.org/6104003/diff/20001/chrome/browser/sync/engine/all_status.cc#newcode19 chrome/browser/sync/engine/all_status.cc:19: sync_api::SyncManager::Status::Summary summary) { Did you consider moving ...
9 years, 11 months ago (2011-01-11 19:14:23 UTC) #3
ncarter (slow)
http://codereview.chromium.org/6104003/diff/20001/chrome/browser/sync/engine/all_status.cc File chrome/browser/sync/engine/all_status.cc (right): http://codereview.chromium.org/6104003/diff/20001/chrome/browser/sync/engine/all_status.cc#newcode19 chrome/browser/sync/engine/all_status.cc:19: sync_api::SyncManager::Status::Summary summary) { On 2011/01/11 19:14:23, timsteele wrote: > ...
9 years, 11 months ago (2011-01-13 00:06:13 UTC) #4
tim (not reviewing)
9 years, 11 months ago (2011-01-13 19:22:56 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698