I have developed a Chrome packaged app that can download certain video files. The videos are downloaded in the background using XHR, and multiple videos can be downloaded in parallel. For long videos, this can be a lenghty process.
If the user accidentally closes the app, all downloads will be terminated without warning.
Is it possible to have a Chrome app ask if the user really wants to quit?