|
|
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
|
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
|
Total messages: 16 (0 generated)
|