|
Refactor SyncManager::Init to receive args via a struct.
SyncManager::Init is implemented in several places, takes a whole lot of
args, and in the near future is going to get a few more.
In some cases, many of the args are optional and it is tedious to pass a
bunch of NULLs or empty strings. Use a struct instead of an arg list.
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288280
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+217 lines, -358 lines) |
Patch |
 |
M |
chrome/browser/sync/glue/sync_backend_host_core.cc
|
View
|
1
2
3
4
|
1 chunk |
+23 lines, -16 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/sync_manager.h
|
View
|
1
2
3
4
|
3 chunks |
+57 lines, -43 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/sync_manager.cc
|
View
|
1
2
3
4
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/test/fake_sync_manager.h
|
View
|
|
1 chunk |
+1 line, -17 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_backup_manager.h
|
View
|
|
1 chunk |
+1 line, -17 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_backup_manager.cc
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -21 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_backup_manager_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+9 lines, -18 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.h
|
View
|
|
1 chunk |
+1 line, -17 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.cc
|
View
|
1
2
3
4
|
7 chunks |
+44 lines, -55 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+15 lines, -19 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_rollback_manager.h
|
View
|
|
1 chunk |
+1 line, -17 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_rollback_manager.cc
|
View
|
1
2
3
4
|
1 chunk |
+10 lines, -26 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_rollback_manager_base_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+12 lines, -39 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_rollback_manager_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+8 lines, -19 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/test/fake_sync_manager.cc
|
View
|
|
1 chunk |
+1 line, -17 lines |
0 comments
|
Download
|
 |
M |
sync/tools/sync_client.cc
|
View
|
1
2
3
4
|
1 chunk |
+20 lines, -17 lines |
0 comments
|
Download
|
Total messages: 6 (0 generated)
|