• Nicolas Ouellet-Payeur's avatar
    [Ephemeral profiles] Clean up 'Custom Dictionary.txt' on window close · c2ffd5a4
    Nicolas Ouellet-Payeur authored
    When the ForceEphemeralProfiles policy is enabled, Chrome tries to
    clean up sensitive files when the last window in a profile is closed.
    However, the Custom Dictionary.txt file is still populated, and it
    can contain sensitive (e.g., a customer's name that was added to
    spellcheck).
    
    With this patch, the Custom Dictionary.txt file is properly cleared
    when the last window in an ephemeral profile closes.
    
    TESTED=Created a new profile in epehemeral mode, added some dictionary
           words, then closed it. Checked that
           Custom Dictionary.txt{,.backup} didn't contain the words. Also
           tested with Sync turned on, to make sure the words were not
           cleared from synced data.
    
    Bug: 1132950
    Change-Id: If50f0f78fc89a7bbdbc1b563856bc36288c53c5b
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2441947Reviewed-by: default avatarMartin Šrámek <msramek@chromium.org>
    Reviewed-by: default avatarGuillaume Jenkins <gujen@google.com>
    Commit-Queue: Nicolas Ouellet-Payeur <nicolaso@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#816673}
    c2ffd5a4
spellcheck_custom_dictionary.h 8.98 KB