• Xing Liu's avatar
    Download retry: Support redirect in UrlDownloader. · 0b2ca9cc
    Xing Liu authored
    Currently redirect is not supported for download in non network service
    code path without a renderer where we handle the network request with
    UrlDownloader.
    
    We have two legit use cases for redirect in UrlDownloader.
    
    1. Retry, we won't assume the renderer exists and the download URL is
    the final URL.
    
    2. Background download in normal user profile. It should be legit for
    all clients to redirect.
    
    Bug: 883387
    Change-Id: Ib517b3a1e23fbfac939386c0f2341a15a54b70ab
    Reviewed-on: https://chromium-review.googlesource.com/c/1312114
    Commit-Queue: Xing Liu <xingliu@chromium.org>
    Reviewed-by: default avatarMin Qin <qinmin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#604798}
    0b2ca9cc
download_url_parameters.h 14 KB