Integrate SEARCH_ENGINES sync into pseudo-USS
This is part of a patch series where we leverage the recently introduced layer that allows integrating legacy SyncableService implementations within the newest architecture, USS. SEARCH_ENGINES is the first datatype where the legacy controller (SearchEngineDataTypeController) implements logic to make sure no interactions with the SyncableService can occur before TemplateURLService is fully loaded. Implementing similar logic in pseudo-USS is nontrivial because: 1. ModelTypeController doesn't support it because it is designed for full-blown USS, where such logic is usually implemented in the bridge itself. 2. SyncableService doesn't support it, because in the legacy architecture the controllers took care (AsyncDirectoryTypeController). For pseudo-USS, this being the first datatype, the least intrusive solution is proposed, which involves a dedicated ModelTypeControllerDelegate. We may change this in the future if more datatypes have similar needs (e.g. ArcPackageSyncDataTypeController). Bug: 870624 Change-Id: I28bb028de99d98608bdf07a06db1883221b8161e Reviewed-on: https://chromium-review.googlesource.com/c/1261435 Commit-Queue: Mikel Astiz <mastiz@chromium.org> Reviewed-by:Vasilii Sukhanov <vasilii@chromium.org> Reviewed-by:
Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#596756}
Showing
Please register or sign in to comment