Add AndroidManifest.xml intent-filters for bundled exchanges file
We are implementing "Navigation to Bundled Exchanges". Design doc: https://docs.google.com/document/d/1Bulrd7E1lFZyPfRFIXP3vNMOM9FX-kWJOCxMOeR8pAQ/view# Demo movie: https://www.youtube.com/watch?v=rs-3R0ji6dA To open the Bundled Exchanges files on Android from other applications, we need to add intent-filters in AndroidManifest.xml. The first intent-filter is for the applications which can't detect the "application/webbundle" mime type. (eg: Open .wbn file from "Internal Storage" in Files app.) We use pathPattern to capture the ".wbn" file extension. But due to the strange behavior of intent filter's pathPattern [1], we need to have multiple patters to load the .wbn files under folders which name contains ".". [1] https://stackoverflow.com/questions/51912180/strange-intent-filter-pathpattern-behaviour The second intent-filter is for the applications which can detect the "application/webbundle" mime type. (eg: Download the Bundled Exchanges file with "content-type: application/webbundle" header, and open the file from "Download" category in Files app.) We don't have plan to ship this feature in Beta and Stable yet. So this CL uses "{% if channel in ['dev', 'canary', 'default'] %}" not to change the AndroidManifest.xml for Beta and Stable. Bug: 995177 Change-Id: I754ca1c74f5bc56d17462cde9d5bd764671c849b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1811405Reviewed-by:Kinuko Yasuda <kinuko@chromium.org> Reviewed-by:
Theresa <twellington@chromium.org> Commit-Queue: Tsuyoshi Horo <horo@chromium.org> Cr-Commit-Position: refs/heads/master@{#701296}
Showing
Please register or sign in to comment