If a file is not openable while preparing the launch data for a file
handler, the file handling app is launched without any file entries and
without the handler ID. With DriveFS, hosted docs will fail in this
fashion; when attempting to zip files including a hosted doc, this
causes the zip archiver to fail silently since it's launched without any
information.
Pass the handler ID to the app when launching without any entries so it
can identify what the user was attempting to do. In the zip archiver,
display the same notification that would be displayed if the zip pack
operation later failed when such launch events are received.
Bug: 892595
Change-Id: I3d2e145a8c6e955b03891063813c0624b692d943
Reviewed-on: https://chromium-review.googlesource.com/c/1303320
Reviewed-by: Anand Mistry <amistry@chromium.org>
Reviewed-by: Ben Wells <benwells@chromium.org>
Commit-Queue: Sam McNally <sammc@chromium.org>
Cr-Commit-Position: refs/heads/master@{#604843}