
The file app calls LaunchPlatformAppWithFileHandler to launch the Chrome app to open the file: https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/ash/file_manager/file_tasks.cc;l=583?q=LaunchPlatformAppWithFileHandler&sq=&ss=chromium%2Fchromium%2Fsrc Modify LaunchPlatformAppWithFileHandler to call the full restore interface to save the launch info. Modify the full restsore component to save the parameter of LaunchPlatformAppWithFileHandler. Modify LaunchSystemWebAppOrChromeApp to call LaunchPlatformAppWithFileHandler to restore/launch the Chrome app to to open the file if `handler_id` has a value. BUG=1230978 Change-Id: Icb9900369f209bb912b98ab7e4671f71147b6337 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3052330 Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Reviewed-by: Dominick Ng <dominickn@chromium.org> Cr-Commit-Position: refs/heads/master@{#905122}