[USS] Uncouple ModelTypeControllerDelegate from bridges - part 1
This CL unblocks https://chromium-review.googlesource.com/c/chromium/src/+/102589 that separates the controller delegate interface from the bridges and makes ClientTagBasedModelTypeProcessor directly implement the interface. Since the processor needs to be able to inform the bridge that sync is starting (before the bridge is ready to sync, i.e. before it gets the pointer to the bridge), this CL passes the (preliminary) bridge pointer to the processor during construction of the bridge. This CL is admittedly hacky, it only minimizes the CL size and thus the speed for landing the blocked CL. After the CL gets landed, we need to remove this hack and introduce a proper solution, probably by swapping the ownership of the bridge and the processor. Bug: 819993 Change-Id: Ie1950e6626a3ab58a583d8fbe502ba52c34319e0 Reviewed-on: https://chromium-review.googlesource.com/1042707 Commit-Queue: Jan Krcal <jkrcal@chromium.org> Reviewed-by:Mikel Astiz <mastiz@chromium.org> Cr-Commit-Position: refs/heads/master@{#556793}
Showing
Please register or sign in to comment