Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(615)

Issue 302173004: sync: Specialize functions that fetch type root (Closed)

Created:
6 years, 6 months ago by rlarocque
Modified:
6 years, 6 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org, Nicolas Zea
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 2

Patch Set 2 : s/GET_BY_SERVER_TAG_DEPRECATED/GET_BY_SERVER_TAG/ #

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

Messages

Total messages: 8 (0 generated)
rlarocque
I had initially discussed this plan with Nicolas, but he's busy with the non-blocking sync ...
6 years, 6 months ago (2014-06-02 17:47:43 UTC) #1
tim (not reviewing)
https://codereview.chromium.org/302173004/diff/1/sync/syncable/entry.h File sync/syncable/entry.h (right): https://codereview.chromium.org/302173004/diff/1/sync/syncable/entry.h#newcode39 sync/syncable/entry.h:39: GET_BY_SERVER_TAG_DEPRECATED The decision to deprecate this seems separate from ...
6 years, 6 months ago (2014-06-03 15:21:21 UTC) #2
rlarocque
Patch updated. PTAL. https://codereview.chromium.org/302173004/diff/1/sync/syncable/entry.h File sync/syncable/entry.h (right): https://codereview.chromium.org/302173004/diff/1/sync/syncable/entry.h#newcode39 sync/syncable/entry.h:39: GET_BY_SERVER_TAG_DEPRECATED On 2014/06/03 15:21:22, timsteele wrote: ...
6 years, 6 months ago (2014-06-03 17:29:39 UTC) #3
tim (not reviewing)
On 2014/06/03 17:29:39, rlarocque wrote: > Patch updated. PTAL. > > https://codereview.chromium.org/302173004/diff/1/sync/syncable/entry.h > File sync/syncable/entry.h ...
6 years, 6 months ago (2014-06-03 17:38:43 UTC) #4
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 6 months ago (2014-06-03 17:41:33 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/302173004/20001
6 years, 6 months ago (2014-06-03 17:41:50 UTC) #6
rlarocque
On 2014/06/03 17:38:43, timsteele wrote: > On 2014/06/03 17:29:39, rlarocque wrote: > > Patch updated. ...
6 years, 6 months ago (2014-06-03 17:43:49 UTC) #7
commit-bot: I haz the power
6 years, 6 months ago (2014-06-03 20:45:31 UTC) #8
Message was sent while issue was closed.
Change committed as 274613

Powered by Google App Engine
This is Rietveld 408576698