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

Issue 488843002: [Sync] Add support for server controlled nudge delays (Closed)

Created:
6 years, 4 months ago by Nicolas Zea
Modified:
6 years, 4 months ago
Reviewers:
rlarocque
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, albertb+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

[Sync] Add support for server controlled nudge delays Server nudge delays override the local ones, but must be longer than the default nudge delay. If set to 0, will reset the nudge to the default. To accomplish this the delay logic was refactored and moved into the sync scheduler, which is now aware of all delays for all types and sync cycles. BUG=401600 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291512

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 14

Patch Set 3 : Address comments #

Patch Set 4 : Address comments #

Total comments: 1

Patch Set 5 : msec -> milliseconds #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+389 lines, -341 lines) Patch
M sync/engine/sync_scheduler.h View 4 chunks +0 lines, -5 lines 0 comments Download
M sync/engine/sync_scheduler_impl.h View 1 2 3 4 chunks +4 lines, -10 lines 0 comments Download
M sync/engine/sync_scheduler_impl.cc View 1 2 3 4 5 11 chunks +30 lines, -39 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 1 2 38 chunks +60 lines, -90 lines 0 comments Download
M sync/engine/syncer_proto_util.cc View 1 2 2 chunks +20 lines, -3 lines 0 comments Download
M sync/engine/syncer_unittest.cc View 1 2 3 4 chunks +47 lines, -30 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 3 4 5 6 chunks +1 line, -108 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 1 chunk +0 lines, -17 lines 0 comments Download
M sync/protocol/client_commands.proto View 1 2 3 chunks +13 lines, -3 lines 0 comments Download
M sync/sessions/data_type_tracker.h View 1 2 3 3 chunks +9 lines, -1 line 0 comments Download
M sync/sessions/data_type_tracker.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M sync/sessions/nudge_tracker.h View 1 2 3 4 chunks +21 lines, -4 lines 0 comments Download
M sync/sessions/nudge_tracker.cc View 1 2 3 4 3 chunks +87 lines, -5 lines 0 comments Download
M sync/sessions/nudge_tracker_unittest.cc View 1 2 3 1 chunk +79 lines, -0 lines 0 comments Download
M sync/sessions/sync_session.h View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M sync/sessions/test_util.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M sync/test/engine/fake_sync_scheduler.h View 1 2 3 chunks +2 lines, -6 lines 0 comments Download
M sync/test/engine/fake_sync_scheduler.cc View 1 2 3 chunks +4 lines, -11 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Nicolas Zea
PTAL
6 years, 4 months ago (2014-08-19 23:38:15 UTC) #1
rlarocque
Some comments. https://codereview.chromium.org/488843002/diff/20001/sync/engine/sync_scheduler_impl.cc File sync/engine/sync_scheduler_impl.cc (right): https://codereview.chromium.org/488843002/diff/20001/sync/engine/sync_scheduler_impl.cc#newcode865 sync/engine/sync_scheduler_impl.cc:865: // Take the shorted delay from all ...
6 years, 4 months ago (2014-08-20 00:13:32 UTC) #2
Nicolas Zea
Comments address, PTAL. Also moved nudge testing to NudgeTracker's tests. https://codereview.chromium.org/488843002/diff/20001/sync/engine/sync_scheduler_impl.cc File sync/engine/sync_scheduler_impl.cc (right): https://codereview.chromium.org/488843002/diff/20001/sync/engine/sync_scheduler_impl.cc#newcode865 ...
6 years, 4 months ago (2014-08-20 22:49:44 UTC) #3
rlarocque
lgtm https://codereview.chromium.org/488843002/diff/60001/sync/sessions/nudge_tracker.cc File sync/sessions/nudge_tracker.cc (right): https://codereview.chromium.org/488843002/diff/60001/sync/sessions/nudge_tracker.cc#newcode20 sync/sessions/nudge_tracker.cc:20: const int kSyncRefreshDelayMsec = 500; nit: It would ...
6 years, 4 months ago (2014-08-21 17:24:53 UTC) #4
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 4 months ago (2014-08-22 20:06:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/488843002/60001
6 years, 4 months ago (2014-08-22 20:07:05 UTC) #6
Nicolas Zea
The CQ bit was unchecked by zea@chromium.org
6 years, 4 months ago (2014-08-22 20:07:51 UTC) #7
Nicolas Zea
The CQ bit was checked by zea@chromium.org
6 years, 4 months ago (2014-08-22 20:15:48 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/488843002/100001
6 years, 4 months ago (2014-08-22 20:16:24 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 21:15:54 UTC) #10
commit-bot: I haz the power
6 years, 4 months ago (2014-08-22 21:41:16 UTC) #11
Message was sent while issue was closed.
Committed patchset #6 (100001) as 291512

Powered by Google App Engine
This is Rietveld 408576698