|
[Sync] Have SyncableService's take ownership of their SyncChangeProcessor.
The UIDataTypeController now uses a SharedChangeProcessor, and passes a ref
to the SyncableService's. Every SyncableService now owns its own change
processor. Additionally, we use the ScopedPtr::Pass semantics for passing
around SyncChangeProcessors to ensure SyncableServices properly take
ownership.
This, along with all the test updates it requires (most of the patch) fixes
several leaks introduced in the previous patch to remove the Syncable Service
Adapter. SyncableServiceMock is removed as it didn't play nice with
scoped_ptr parameters (and was hardly used).
BUG= 117098, 117538
TEST=unit_tests with valgrind/drmemory/heapcheck
TBR=georgy@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128578
Total comments: 12
Total comments: 6
Total comments: 9
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+558 lines, -440 lines) |
Patch |
 |
M |
chrome/browser/extensions/app_notification_manager.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/app_notification_manager.cc
|
View
|
1
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/app_notification_manager_sync_unittest.cc
|
View
|
1
2
3
4
5
|
18 chunks |
+51 lines, -21 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_service.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_service.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+13 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/extension_service_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
12 chunks |
+13 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/settings/settings_apitest.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+24 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/settings/settings_backend.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/settings/settings_backend.cc
|
View
|
1
|
7 chunks |
+15 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/settings/settings_sync_unittest.cc
|
View
|
1
2
3
4
5
|
28 chunks |
+202 lines, -132 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/settings/syncable_settings_storage.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/test_extension_service.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/test_extension_service.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_model_associator.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/prefs/pref_model_associator.cc
|
View
|
1
|
4 chunks |
+6 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/search_engines/template_url_service.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/search_engines/template_url_service.cc
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/search_engines/template_url_service_sync_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
28 chunks |
+66 lines, -29 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/search_engines/template_url_service_test_util.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/search_engines/template_url_service_test_util.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/api/fake_syncable_service.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/api/fake_syncable_service.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/api/syncable_service.h
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/sync/api/syncable_service_mock.h
|
View
|
1
|
1 chunk |
+0 lines, -30 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/sync/api/syncable_service_mock.cc
|
View
|
1
|
1 chunk |
+0 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/app_notification_data_type_controller_unittest.cc
|
View
|
1
|
3 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/new_non_frontend_data_type_controller.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/new_non_frontend_data_type_controller_unittest.cc
|
View
|
|
6 chunks |
+4 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/search_engine_data_type_controller_unittest.cc
|
View
|
1
|
4 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/shared_change_processor_unittest.cc
|
View
|
|
5 chunks |
+8 lines, -9 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/ui_data_type_controller.h
|
View
|
1
2
3
4
|
2 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/ui_data_type_controller.cc
|
View
|
1
|
5 chunks |
+40 lines, -26 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/ui_data_type_controller_unittest.cc
|
View
|
1
|
2 chunks |
+13 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_preference_unittest.cc
|
View
|
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/webdata/autocomplete_syncable_service.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/webdata/autocomplete_syncable_service.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/webdata/autofill_profile_syncable_service.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/webdata/autofill_profile_syncable_service.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/webdata/autofill_profile_syncable_service_unittest.cc
|
View
|
|
2 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tools/heapcheck/suppressions.txt
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -34 lines |
0 comments
|
Download
|
 |
M |
tools/valgrind/drmemory/suppressions_full.txt
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -25 lines |
0 comments
|
Download
|
 |
M |
tools/valgrind/memcheck/suppressions.txt
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+0 lines, -19 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|