• Danyao Wang's avatar
    [Payment Request][Desktop] Download manifest icon in the correct frame. · 4f2ba63c
    Danyao Wang authored
    This CL plumbs RenderFrameHost into InstallablePaymentAppCrawler so it
    can be provided to ManifestIconDownloader to download the icon in the
    correct frame that initiated the PaymentRequest.
    
    The ManifestIconDownloader was previously changed to expect the global
    frame routing ID instead of RenderFrameHost* (crrev.com/c/2085752).
    This will be changed to use RenderFrameHost* directly in a subsequent
    CL per a post-commit comment.
    
    After this change, all payments code can also be cleaned up to look
    up WebContents* from the RenderFrameHost* instead of retaining both.
    This will also be cleaned up in a subsequent CL.
    
    Bug: 1055360
    Change-Id: Ic431b04ff88d1ac0235172391c9697bbd0ec8fa9
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2097242Reviewed-by: default avatarRouslan Solomakhin <rouslan@chromium.org>
    Commit-Queue: Danyao Wang <danyao@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#749149}
    4f2ba63c
payment_request.cc 29.6 KB