• Jan Krcal's avatar
    [Device info sync] Construct the controller in ProfileSyncService · 4e2ea188
    Jan Krcal authored
    This CL moves the construction of the sync controller for device info
    directly into ProfileSyncService that owns the DeviceInfoSyncBridge.
    This (a) heavily simplifies how the controller gets access to its
    delegate (removing the accessor from SyncClients) and (b) allows to use
    the forwarding delegate instead of the proxy delegate.
    
    This CL is a preparation for using the simpler forwarding delegate for
    all sync types that run on the UI sequence.
    
    This CL also resolves a TODO by making it clear that DEVICE_INFO cannot
    get disabled via the command-line switch.
    
    Bug: 867801
    Change-Id: Iea84d818613476f40d89eebd73266aa24d028fb6
    Reviewed-on: https://chromium-review.googlesource.com/c/1348092
    Commit-Queue: Jan Krcal <jkrcal@chromium.org>
    Reviewed-by: default avatarMikel Astiz <mastiz@chromium.org>
    Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#610448}
    4e2ea188
ios_chrome_sync_client.mm 15.3 KB