|
|
Refactor following sync commit loop change
This change includes some cleanups of the code introduced in r139519.
They have been kept separate from that CL in the hopes of making both
CLs easiser to read.
This commit moves some error-detection functionality from
ProcessCommitResponse's ModelNeutralExecuteImpl() into
BuildAndPostCommits(). This simplifies some of the error handling and
allows us to remove ModelChangingSyncerCommand's
ModelNeutralExecuteImpl().
This CL also combines both commit error indicators into a single
variable.
BUG= 91696, 36594
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141321
Total comments: 7
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+104 lines, -149 lines) |
Patch |
 |
M |
chrome/browser/sync/profile_sync_service_harness.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/sync_ui_util.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+3 lines, -7 lines |
0 comments
|
Download
|
 |
M |
sync/engine/build_commit_command.cc
|
View
|
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
sync/engine/commit.cc
|
View
|
1
2
3
4
|
2 chunks |
+76 lines, -23 lines |
0 comments
|
Download
|
 |
M |
sync/engine/model_changing_syncer_command.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -8 lines |
0 comments
|
Download
|
 |
M |
sync/engine/model_changing_syncer_command.cc
|
View
|
|
2 chunks |
+1 line, -9 lines |
0 comments
|
Download
|
 |
M |
sync/engine/process_commit_response_command.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/engine/process_commit_response_command.cc
|
View
|
|
2 chunks |
+0 lines, -45 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_unittest.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/sessions/error_counters.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/sessions/error_counters.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/sessions/sync_session_snapshot.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/sessions/status_controller.h
|
View
|
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/status_controller.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -15 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/status_controller_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/sync_session.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -9 lines |
0 comments
|
Download
|
 |
M |
sync/sessions/test_util.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|