• Zain Afzal's avatar
    Make request save file return a pickedFile. · 36a75677
    Zain Afzal authored
    Previously the media app was unable to perform a save as operation on a
    file obtained from a drag and drop or from a paste event. This was
    because the logic surrounding the operation was encapsulated in
    ReceivedFile which is a class the media app does not have access to.
    This cl updates the requestSaveFile IPC to return a ReceivedFile
    instead of returning a file token, allowing the media app to obtain a
    native file, overwrite it and copy over it's functions so future saves
    can happen in place.
    
    The google3 side of this change is @ cl/334717684.
    
    Bug: b/165769056, b/169630668
    Change-Id: Ied8dd540f9f319b18b427e6566851bc628ed3204
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2439969Reviewed-by: default avatarTrent Apted <tapted@chromium.org>
    Reviewed-by: default avatardstockwell <dstockwell@google.com>
    Commit-Queue: Zain Afzal <zafzal@google.com>
    Cr-Commit-Position: refs/heads/master@{#812607}
    36a75677
launch.js 31.3 KB