|
sync: Specialize functions that fetch type root
Adds functions to look up the root node of a give type. This replaces
most of the use cases for the functions that look up a node by unique
server tag, so those functions have been renamed to indicate their
near-deprecation.
This is part of the effort to remove the client's dependence on the
server for the creation of type root nodes. Although it's unlikely that
we can make this work for existing types, new types should be prepared
to work properly in the absence of tyep root nodes. The first step on
that path is to abstract away the mechanism by which we look up the type
roots.
Renaming the old lookup by tag functions allows us to ensure that there
no remaining cases where the code base looks up type roots by server
tag. This CL also adds a few DCHECKs to ensure type roots are never
looked up using the old lookup by server tag functions.
BUG= 373869
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274613
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+157 lines, -157 lines) |
Patch |
 |
M |
chrome/browser/sync/glue/bookmark_change_processor.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/bookmark_model_associator.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/synced_device_tracker.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/typed_url_change_processor.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/typed_url_model_associator.h
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/typed_url_model_associator.cc
|
View
|
1
|
4 chunks |
+4 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_autofill_unittest.cc
|
View
|
|
7 chunks |
+8 lines, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_bookmark_unittest.cc
|
View
|
|
5 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_typed_url_unittest.cc
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/test/integration/enable_disable_test.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/generic_change_processor.cc
|
View
|
|
4 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
components/sync_driver/generic_change_processor_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
sync/engine/apply_control_data_updates.cc
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/engine/apply_control_data_updates_unittest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
sync/engine/directory_commit_contribution_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -8 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/read_node.h
|
View
|
|
1 chunk |
+11 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/write_node.h
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/read_node.cc
|
View
|
1
|
2 chunks |
+20 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_backup_manager_unittest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_encryption_handler_impl.cc
|
View
|
|
8 chunks |
+8 lines, -11 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_encryption_handler_impl_unittest.cc
|
View
|
|
20 chunks |
+20 lines, -20 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl_unittest.cc
|
View
|
|
10 chunks |
+12 lines, -14 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_rollback_manager_base.cc
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_rollback_manager_base_unittest.cc
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_rollback_manager_unittest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/write_node.cc
|
View
|
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/directory.cc
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/entry.h
|
View
|
1
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/syncable/entry.cc
|
View
|
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/syncable/model_neutral_mutable_entry.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/model_neutral_mutable_entry.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/mutable_entry.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/syncable/mutable_entry.cc
|
View
|
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/nigori_util.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|