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

Issue 171813013: sync: Merge GU retry logic into normal GU (Closed)

Created:
6 years, 10 months ago by rlarocque
Modified:
6 years, 9 months ago
Reviewers:
haitaol1
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

sync: Merge GU retry logic into normal GU Moves the implementation of the GU retry get updates into the normal GU cycle. This should have no impact on behvaior. The point of this refactoring is to eliminate an instance of the GetUpdateDelegate. I hope to build on that interface in the future, and removing one of its four implementations should make that work 25% easier. This CL should retain all the same quirks as the old retry implemenation. The timer management is the same. It also sends up a special RETRY value for GetUpdatesOrigin when the only reason for performing an update is a scheduled retry, which was the behavior of the old code. This CL also refactors the NudgeTracker's mangement of the updates_source_. The old, stateful, implementation was getting out of hand. The new implementation should be easier to maintain, especially as we start to support 'partially successful' sync cycles. BUG=339984 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254653

Patch Set 1 #

Patch Set 2 : Rebase + fix bug #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -158 lines) Patch
M sync/engine/get_updates_delegate.h View 1 chunk +0 lines, -17 lines 0 comments Download
sync/engine/get_updates_delegate.cc View 1 2 chunks +6 lines, -22 lines 0 comments Download
M sync/engine/get_updates_processor_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M sync/engine/sync_scheduler_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M sync/engine/sync_scheduler_impl.cc View 3 chunks +1 line, -23 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 12 chunks +17 lines, -18 lines 0 comments Download
M sync/engine/syncer.h View 1 chunk +0 lines, -2 lines 0 comments Download
M sync/engine/syncer.cc View 1 2 3 chunks +2 lines, -18 lines 0 comments Download
M sync/sessions/data_type_tracker.h View 1 chunk +3 lines, -0 lines 0 comments Download
M sync/sessions/data_type_tracker.cc View 1 chunk +8 lines, -9 lines 0 comments Download
M sync/sessions/nudge_tracker.h View 1 chunk +1 line, -1 line 0 comments Download
M sync/sessions/nudge_tracker.cc View 7 chunks +43 lines, -25 lines 0 comments Download
M sync/sessions/nudge_tracker_unittest.cc View 1 chunk +17 lines, -9 lines 0 comments Download
M sync/sessions/test_util.h View 1 chunk +5 lines, -5 lines 0 comments Download
M sync/sessions/test_util.cc View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
rlarocque
I know we've discussed this before. I'm looking to reopen that discussion. The GetUpdatesDelegate classes ...
6 years, 10 months ago (2014-02-20 01:46:32 UTC) #1
rlarocque
I had intended to send this review to Haitao. Looks like I sent it to ...
6 years, 10 months ago (2014-02-21 20:10:58 UTC) #2
rlarocque
ping.
6 years, 9 months ago (2014-02-25 18:55:24 UTC) #3
rlarocque
ping x 2.
6 years, 9 months ago (2014-02-26 20:46:58 UTC) #4
haitaol1
lgtm
6 years, 9 months ago (2014-02-26 22:18:44 UTC) #5
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 9 months ago (2014-02-26 22:33:45 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/171813013/1
6 years, 9 months ago (2014-02-26 22:37:38 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-27 00:46:14 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) sync_unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=205776
6 years, 9 months ago (2014-02-27 00:46:15 UTC) #9
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 9 months ago (2014-02-28 22:00:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/171813013/130001
6 years, 9 months ago (2014-02-28 22:02:03 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 22:02:08 UTC) #12
commit-bot: I haz the power
Failed to apply patch for sync/engine/download_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
6 years, 9 months ago (2014-02-28 22:02:09 UTC) #13
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 9 months ago (2014-03-03 20:52:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/171813013/150001
6 years, 9 months ago (2014-03-03 20:53:53 UTC) #15
commit-bot: I haz the power
6 years, 9 months ago (2014-03-04 04:20:00 UTC) #16
Message was sent while issue was closed.
Change committed as 254653

Powered by Google App Engine
This is Rietveld 408576698