|
Add return values to SyncerCommand
This is part 1 of 3 in a series of patches to remove the unnecessary
SYNC_CYCLE_CONTINUATION sync cycle that follows every sync commit.
In this patch, we add a return value to all SyncerCommands. This will
make it easier for us to tell when a command has failed, and why.
Currently, the error detection does not work very well. We don't have
much support for errors that occur on worker threads. Many commands will
return an error only in case of directory lookup failure, but return
NO_ERROR otherwise.
This is OK because we're not aiming to fully implement error detection
in this commit. This provides a base we can build on in future commits.
BUG= 94670, 109422
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116963
Total comments: 6
Total comments: 33
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+307 lines, -187 lines) |
Patch |
 |
M |
chrome/browser/sync/engine/apply_updates_command.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/apply_updates_command.cc
|
View
|
1
2
3
4
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/build_and_process_conflict_sets_command.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/build_and_process_conflict_sets_command.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/build_commit_command.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/build_commit_command.cc
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/cleanup_disabled_types_command.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/cleanup_disabled_types_command.cc
|
View
|
1
2
3
4
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/clear_data_command.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/clear_data_command.cc
|
View
|
1
2
3
4
|
5 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/download_updates_command.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/download_updates_command.cc
|
View
|
1
2
3
4
|
5 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/get_commit_ids_command.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/get_commit_ids_command.cc
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/model_changing_syncer_command.h
|
View
|
1
2
3
|
4 chunks |
+9 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/model_changing_syncer_command.cc
|
View
|
1
2
3
4
|
3 chunks |
+16 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/model_changing_syncer_command_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/model_safe_worker.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/model_safe_worker.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/passive_model_worker.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/passive_model_worker.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/post_commit_message_command.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/post_commit_message_command.cc
|
View
|
1
2
3
4
|
3 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/process_commit_response_command.h
|
View
|
1
2
3
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/process_commit_response_command.cc
|
View
|
1
2
3
4
|
7 chunks |
+25 lines, -17 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/process_updates_command.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/process_updates_command.cc
|
View
|
1
2
3
4
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/resolve_conflicts_command.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/resolve_conflicts_command.cc
|
View
|
1
2
3
4
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/store_timestamps_command.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/store_timestamps_command.cc
|
View
|
1
2
3
4
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/syncer_command.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/syncer_command.cc
|
View
|
1
2
3
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/verify_updates_command.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/engine/verify_updates_command.cc
|
View
|
1
2
3
4
|
3 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/browser_thread_model_worker.h
|
View
|
1
2
3
4
5
6
|
6 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/browser_thread_model_worker.cc
|
View
|
1
2
3
|
5 chunks |
+12 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/browser_thread_model_worker_unittest.cc
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/history_model_worker.h
|
View
|
1
2
3
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/history_model_worker.cc
|
View
|
1
2
3
|
4 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/password_model_worker.h
|
View
|
1
2
3
|
4 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/password_model_worker.cc
|
View
|
1
2
3
|
2 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/ui_model_worker.h
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/ui_model_worker.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/ui_model_worker_unittest.cc
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/sync/internal_api/includes/syncer_error.h
|
View
|
1
2
3
4
5
6
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/sync/internal_api/includes/syncer_error.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+36 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/engine/fake_model_worker.h
|
View
|
1
2
3
4
5
6
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/engine/fake_model_worker.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome.gyp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 13 (0 generated)
|