• xiyuan's avatar
    cros: Fix loading user profile w/o UserSessionManager · 41d32a3c
    xiyuan authored
    The fallback logic in GetActiveUserOrOffTheRecordProfileFromPath
    should cover the case when the user profile loading has not started.
    So that it does not creates/loads user profile accidentally without
    going through UserSessionManager.
    
    BUG=728683,718734
    TEST=ProfileManagerTest.UserProfileLoading
    
    Review-Url: https://codereview.chromium.org/2918203002
    Cr-Commit-Position: refs/heads/master@{#478735}
    41d32a3c
profile_manager.h 19.9 KB