• Mario Sanchez Prada's avatar
    Move //google_apis/drive into its own target and update clients · fdda9f64
    Mario Sanchez Prada authored
    The reason we're now splitting this module into its own target is
    to avoid dependency cycles when migrating certain bits to the
    Identity service: since AuthService lives in google_apis/drive,
    we can't port it to the IdentityManager without incurring in a
    cycle caused by the identity service depending on the signin
    component which, in turn, depends again on google_apis.
    
    Note that we now need to make some GN targets under chrome/browser
    directly depend on //google_apis/drive as well in order to prevent
    build failures caused from happening because of such targets including
    headers files from //google_apis/drive. This was not required before
    doing this split since those targets would implicitly pull //google_apis
    through some of their direct dependencies' public_deps anyway. However,
    the new //google_apis/drive target is not listed as a public_dep anywhere,
    and so explicitly depending on it from those places is now required.
    
    Making this change now allows us to break the cycle since the signin
    component does not depend on anything in google_apis/drive, allowing
    us to reimplement AuthService in terms of the IdentityManager.
    
    Bug: 809440
    Change-Id: Iec117d39beb073a094c180a1d855b7f33353e0b2
    Reviewed-on: https://chromium-review.googlesource.com/c/1273074
    Commit-Queue: Mario Sanchez Prada <mario@igalia.com>
    Reviewed-by: default avatarRyo Hashimoto <hashimoto@chromium.org>
    Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
    Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
    Reviewed-by: default avatarDavid Roger <droger@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#600749}
    fdda9f64
BUILD.gn 288 KB