• Maggie Cai's avatar
    [IntentHandling] Provide API for create intent from file path. · 0b391961
    Maggie Cai authored
    This CL adds the API to create intent from file path. When the intent
    coming from a client with physical file path, it is easier for the
    client to directly pass the file path in.
    
    There is one issue where doing this will make the file manager involve
    in the intent handling even when the file is not directly shared from
    the file manager. Luciano will look into the file system context and see
    if there is a way to get the file system context without involving the
    file manager. There is another option that is possible is to add another
    field in the intent with file path, and the receiving end will have to
    resolve both fields to get the whole list of file. At the moment I will
    prefer to keep it simple for the receiving end.
    
    BUG=1092784
    
    Change-Id: I02001085546d00434e0a47ef71e7a066b80f1d82
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2435125
    Commit-Queue: Maggie Cai <mxcai@chromium.org>
    Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#811558}
    0b391961
intent_util.cc 782 Bytes