[Sync USS] Make ModelTypeWorker::entities_ keyed by sever ids
Currently, entities are tracked in a map inside the ModelTypeWorker. This is a left over from the old arch. before introducing the poll model between the worker and the processor. The main motivation for this refactoring is the map is currently keyed by the client tag hash which bookmarks lack. After this CL, the map will be keyed on server ids to support all types of entities. And since the map is now used only when receiving remote updates, all entities should have sever ids. This is also in prepartion for migrating bookmarks. Bug: 516866 Change-Id: I1e8c8c7073a53e0c67b0da2551a20e2d4db93cb1 Reviewed-on: https://chromium-review.googlesource.com/982620 Commit-Queue: Mohamed Amir Yosef <mamir@chromium.org> Reviewed-by:Pavel Yatsuk <pavely@chromium.org> Reviewed-by:
Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#549805}
Showing
Please register or sign in to comment