• Friedrich Horschig's avatar
    [Mfill Android] Collapse all sheet methods into single code path · 2fcdbf19
    Friedrich Horschig authored
    This CL collapses all code-paths for accessory sheets into one.
    All sheets now have common classes for coordinator, mediator and model.
    For the ViewBinders, this would make no sense (since they are static
    classes used to implement interfaces anyway) and Views are largely
    shared anyway.
    The wiring is only partly hidden in these super classes since it would
    be too difficult to find the connection between ViewBinder, Model and
    Coordinator if we would just require interfaces [1].
    
    Minor, intentional clean-ups:
     - Credit Cards now have a UserInfo type representation.
     - The address sheet isn't any longer in V2 but instead guarded by the
       same flag as the credit card sheet.
    
    [1] I tried and reverted it. It pretty much takes 300 more lines away
    but then, the whole component becomes very in-transparent.
    
    Details to follow.
    
    Bug: 902425
    Change-Id: Ia44694f72418b5f27a021569bfb3e70a19f24201
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1634736
    Commit-Queue: Friedrich [CET] <fhorschig@chromium.org>
    Reviewed-by: default avatarIoana Pandele <ioanap@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#666231}
    2fcdbf19
BUILD.gn 8.69 KB