• Mihai Sardarescu's avatar
    Avoid useless fetches of user ID from GCM account tracker. · 386e6e51
    Mihai Sardarescu authored
    For every account available in the account tracker service, both the
    Gaia ID and the email are available. The GCM AccountTracker was fetching
    again the gaia ID from the server on every start-up and every time a new
    account was added to the profile. This CL removes this useless fetch
    and changed the GCM AccountTracker to reuse the information already
    available in the IdentityManager.
    
    Additional clean-up to completely remove the GCM AccountTracker would
    also be good, but I do not know this code well enough to do this cleanup.
    
    Fixed: 1028522
    
    Change-Id: I77790a3203a94ea8c7baf19ca0eb2449b096b630
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1944492Reviewed-by: default avatarColin Blundell <blundell@chromium.org>
    Commit-Queue: Mihai Sardarescu <msarda@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#720515}
    386e6e51
account_tracker_unittest.cc 17.8 KB