• Mihai Sardarescu's avatar
    Clear GAIA related information from profile entry on start-up. · d683ff68
    Mihai Sardarescu authored
    When loading the primary account, the SigninManager may decide to
    force sign-out (e.g if the user disallowed signed in). In this case,
    the GAIAInfoUpdateService is not notified (as it is created only after
    the SigninManager), so it fails to clear the GAIA name, given name and
    picture from the profile entry cache.
    
    This CL clears the GAIA name, given name and picture from the profile
    entry cache when the GAIAInfoUpdateService is created if the profile
    does not have any primary account.
    
    Bug: 890309
    
    Change-Id: I21211cc355672e4ecdc4e911a56187c63b97b8f1
    Reviewed-on: https://chromium-review.googlesource.com/1251442Reviewed-by: default avatarThomas Tangl <tangltom@chromium.org>
    Commit-Queue: Mihai Sardarescu <msarda@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#595076}
    d683ff68
gaia_info_update_service_unittest.cc 15.8 KB