|
|
sync: Report GetUpdate triggers to the server
This commit makes use of the protocol buffers added in r198250.
This adds code to the nudge tracker so it can keep more detailed
information about the reasons for fetching an update. This information
is copied into the per-type GetUpdateTriggers when we perform a
"triggered" GetUpdate.
There was no channel available to pass the nudge_tracker through to the
DownloadUpdatesCommand, so it ended up being passed through a
(maybe-NULL) member of the SyncSession. That's part of the reason why
this change ended up touching so many files.
The other reason why this change is so big is testing. Lots of tests
had to be updated with some amended for the new SyncScheduler function
signatures. This commit also includes quite a few test cases for the
NudgeTracker itself.
Because this change was delayed longer than expected, I've updated the
comments in sync.proto referencing M28 to reference M29 instead.
BUG= 231693, 138613
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199136
Total comments: 21
Total comments: 9
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+978 lines, -409 lines) |
Patch |
 |
M |
sync/engine/download_updates_command.cc
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+49 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/engine/download_updates_command_unittest.cc
|
View
|
1
2
|
2 chunks |
+29 lines, -10 lines |
0 comments
|
Download
|
 |
M |
sync/engine/sync_scheduler.h
|
View
|
1
2
3
|
1 chunk |
+23 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sync/engine/sync_scheduler_impl.h
|
View
|
1
2
3
|
4 chunks |
+9 lines, -7 lines |
0 comments
|
Download
|
 |
M |
sync/engine/sync_scheduler_impl.cc
|
View
|
1
2
3
4
5
|
13 chunks |
+71 lines, -65 lines |
0 comments
|
Download
|
 |
M |
sync/engine/sync_scheduler_unittest.cc
|
View
|
1
2
3
4
5
|
30 chunks |
+79 lines, -137 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_proto_util.cc
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_proto_util_unittest.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_unittest.cc
|
View
|
1
2
3
4
5
|
17 chunks |
+43 lines, -16 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+7 lines, -14 lines |
0 comments
|
Download
|
 |
M |
sync/protocol/client_commands.proto
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/protocol/proto_value_conversions.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sync/protocol/sync.proto
|
View
|
|
8 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/nudge_tracker.h
|
View
|
1
2
3
|
2 chunks |
+96 lines, -16 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/nudge_tracker.cc
|
View
|
1
2
3
|
1 chunk |
+172 lines, -22 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/nudge_tracker_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+288 lines, -85 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session.h
|
View
|
1
2
3
|
4 chunks |
+28 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session.cc
|
View
|
1
2
3
|
1 chunk |
+19 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session_unittest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/test/engine/fake_sync_scheduler.h
|
View
|
1
2
3
4
5
|
2 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sync/test/engine/fake_sync_scheduler.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+17 lines, -9 lines |
0 comments
|
Download
|
 |
M |
sync/test/engine/syncer_command_test.h
|
View
|
1
2
3
4
5
|
2 chunks |
+12 lines, -2 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|