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

Issue 375023002: sync: Support nudges from non-blocking sync types (Closed)

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

Description

sync: Support nudges from non-blocking sync types Implements support for receiving nudges from the non-blocking sync engine. When a non-blocking sync type requests a commit, it will also send a request to the sync scheduler asking it to schedule a sync cycle for some time in the future. Adds some of the code required to support refresh requests, but does not include an interface to allow clients of the non-blocking sync API to access it. Adds basic support for the initial download nudge. When a non-blocking type starts syncing for the first time, it sends a request to the scheduler asking it to download any data available on the server. This allows it to complete initial sync quickly and without putting the scheduler into configure mode. For now, this looks like a refresh request in the sync protocol. This will be changed in a future CL. BUG=351005 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282439

Patch Set 1 #

Patch Set 2 : SYNC_EXPORT #

Total comments: 14

Patch Set 3 : Rebase + review fixes #

Patch Set 4 : Rebase + review fixes (re-upload) #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -39 lines) Patch
M sync/engine/model_type_sync_worker_impl.h View 3 chunks +5 lines, -0 lines 0 comments Download
M sync/engine/model_type_sync_worker_impl.cc View 2 chunks +8 lines, -1 line 0 comments Download
M sync/engine/model_type_sync_worker_impl_unittest.cc View 11 chunks +31 lines, -1 line 0 comments Download
A sync/engine/nudge_handler.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
A + sync/engine/nudge_handler.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M sync/engine/syncer_unittest.cc View 3 chunks +4 lines, -1 line 0 comments Download
M sync/internal_api/sync_context_proxy_impl_unittest.cc View 1 2 3 4 2 chunks +24 lines, -5 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 2 3 chunks +16 lines, -9 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 3 4 2 chunks +17 lines, -1 line 0 comments Download
M sync/sessions/model_type_registry.h View 1 2 3 chunks +7 lines, -7 lines 0 comments Download
M sync/sessions/model_type_registry.cc View 1 2 3 4 2 chunks +7 lines, -8 lines 0 comments Download
M sync/sessions/model_type_registry_unittest.cc View 1 2 3 4 3 chunks +4 lines, -1 line 0 comments Download
M sync/sync_core.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M sync/sync_tests.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A sync/test/engine/mock_nudge_handler.h View 1 chunk +40 lines, -0 lines 0 comments Download
A sync/test/engine/mock_nudge_handler.cc View 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
rlarocque
Please review.
6 years, 5 months ago (2014-07-09 20:29:17 UTC) #1
stanisc
https://codereview.chromium.org/375023002/diff/20001/sync/engine/nudge_handler.cc File sync/engine/nudge_handler.cc (right): https://codereview.chromium.org/375023002/diff/20001/sync/engine/nudge_handler.cc#newcode9 sync/engine/nudge_handler.cc:9: NudgeHandler::NudgeHandler() { Since NudgeHandler is effectively an interface, why ...
6 years, 5 months ago (2014-07-09 22:35:25 UTC) #2
pavely
lgtm with 2 comments. https://codereview.chromium.org/375023002/diff/20001/sync/internal_api/sync_manager_impl.cc File sync/internal_api/sync_manager_impl.cc (right): https://codereview.chromium.org/375023002/diff/20001/sync/internal_api/sync_manager_impl.cc#newcode907 sync/internal_api/sync_manager_impl.cc:907: RequestNudgeForDataTypes(FROM_HERE, ModelTypeSet(type)); Could you check ...
6 years, 5 months ago (2014-07-09 23:13:18 UTC) #3
rlarocque
https://codereview.chromium.org/375023002/diff/20001/sync/engine/nudge_handler.cc File sync/engine/nudge_handler.cc (right): https://codereview.chromium.org/375023002/diff/20001/sync/engine/nudge_handler.cc#newcode9 sync/engine/nudge_handler.cc:9: NudgeHandler::NudgeHandler() { On 2014/07/09 22:35:24, stanisc wrote: > Since ...
6 years, 5 months ago (2014-07-10 00:12:30 UTC) #4
stanisc
lgtm
6 years, 5 months ago (2014-07-10 00:16:29 UTC) #5
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 5 months ago (2014-07-10 17:00:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/375023002/60001
6 years, 5 months ago (2014-07-10 17:01:45 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-10 17:13:33 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-10 17:15:15 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/27080)
6 years, 5 months ago (2014-07-10 17:15:17 UTC) #10
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 5 months ago (2014-07-10 17:52:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/375023002/80001
6 years, 5 months ago (2014-07-10 17:55:30 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 22:03:13 UTC) #13
Message was sent while issue was closed.
Change committed as 282439

Powered by Google App Engine
This is Rietveld 408576698