• Shakti Sahu's avatar
    Send updates for FAILED downloads only once · ff9ee2b6
    Shakti Sahu authored
    When download offline content provider is enabled, we send redundant
    FAILED updates. However the notification layer removes it from the shared
    preferences the first time it sees a FAILED download. Hence it will
    result in two different notifications. The solution is to treat COMPLETED
    and FAILED as terminal downloads and filter out duplicate updates for them.
    
    Bug: 1003550
    Change-Id: Ief7c4450d644259352d3626e4f9dbd7b15362091
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1801228
    Commit-Queue: Shakti Sahu <shaktisahu@chromium.org>
    Reviewed-by: default avatarMin Qin <qinmin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#696989}
    ff9ee2b6
download_offline_content_provider.cc 17.5 KB