Descriptionmac: Zip packages when they are selected by the file opener.
When a package is selected in the file opener, it is automatically zipped, and
the zipped file is passed to the render view host.
This CL fixes 2 unrelated bugs in file_select_helper:
- If the render_view_host_ was destroyed before the user finished with the
file_select_helper, then Release() would never be called and the
file_select_helper would leak.
- If the render_view_host_ was destroyed before the user finished with the
file_select_helper, the default directory would be updated if the user was
opening multiple files, but it would not be updated if the user was opening a
single file. Now both update the default directory.
Note: When a large package is being zipped, the UI thread and renderer are
still responsive, but display no indication of the ongoing work.
BUG=33920
Committed: https://crrev.com/22de64a3653834acad2580ded12857385e3d4d65
Cr-Commit-Position: refs/heads/master@{#299143}
Patch Set 1 : #
Total comments: 12
Patch Set 2 : Comments from avi. #
Total comments: 34
Patch Set 3 : Comments from thestig. #Patch Set 4 : Use AppendRelativePath(). #Messages
Total messages: 31 (14 generated)
|