Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Issue 634833003: mac: Zip packages when they are selected by the file opener. (Closed)

Created:
6 years, 2 months ago by erikchen
Modified:
6 years, 2 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

mac: 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)
erikchen
avi: Please review.
6 years, 2 months ago (2014-10-07 23:49:47 UTC) #9
Avi (use Gerrit)
https://codereview.chromium.org/634833003/diff/140001/chrome/browser/file_select_helper.cc File chrome/browser/file_select_helper.cc (right): https://codereview.chromium.org/634833003/diff/140001/chrome/browser/file_select_helper.cc#newcode65 chrome/browser/file_select_helper.cc:65: for (base::FilePath file_path : paths) auto& perhaps? https://codereview.chromium.org/634833003/diff/140001/chrome/browser/file_select_helper.cc#newcode175 chrome/browser/file_select_helper.cc:175: ...
6 years, 2 months ago (2014-10-08 00:17:32 UTC) #10
erikchen
avi: PTAL https://codereview.chromium.org/634833003/diff/140001/chrome/browser/file_select_helper.cc File chrome/browser/file_select_helper.cc (right): https://codereview.chromium.org/634833003/diff/140001/chrome/browser/file_select_helper.cc#newcode65 chrome/browser/file_select_helper.cc:65: for (base::FilePath file_path : paths) On 2014/10/08 ...
6 years, 2 months ago (2014-10-08 20:14:44 UTC) #11
Avi (use Gerrit)
LGTM; if ifdefing the variable causes too much pain then don't bother. https://codereview.chromium.org/634833003/diff/160001/chrome/browser/file_select_helper.h File chrome/browser/file_select_helper.h ...
6 years, 2 months ago (2014-10-08 20:28:18 UTC) #12
erikchen
https://codereview.chromium.org/634833003/diff/160001/chrome/browser/file_select_helper.h File chrome/browser/file_select_helper.h (right): https://codereview.chromium.org/634833003/diff/160001/chrome/browser/file_select_helper.h#newcode194 chrome/browser/file_select_helper.h:194: std::vector<base::FilePath> temporary_files_; On 2014/10/08 20:28:18, Avi wrote: > Don't ...
6 years, 2 months ago (2014-10-08 20:33:29 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634833003/160001
6 years, 2 months ago (2014-10-08 20:37:55 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32 on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32/builds/1032) mac_chromium_compile_dbg on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg/builds/23196) mac_chromium_rel_swarming ...
6 years, 2 months ago (2014-10-08 22:11:12 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634833003/160001
6 years, 2 months ago (2014-10-08 22:22:49 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/16515)
6 years, 2 months ago (2014-10-09 03:13:43 UTC) #21
erikchen
thestig: Looking for an OWNER review of chrome/browser/*
6 years, 2 months ago (2014-10-09 17:10:45 UTC) #23
Lei Zhang
https://codereview.chromium.org/634833003/diff/160001/chrome/browser/file_select_helper.cc File chrome/browser/file_select_helper.cc (right): https://codereview.chromium.org/634833003/diff/160001/chrome/browser/file_select_helper.cc#newcode66 chrome/browser/file_select_helper.cc:66: base::DeleteFile(file_path, true); Recursive deletion is scary. Do you really ...
6 years, 2 months ago (2014-10-09 18:41:55 UTC) #24
erikchen
thestig: PTAL https://codereview.chromium.org/634833003/diff/160001/chrome/browser/file_select_helper.cc File chrome/browser/file_select_helper.cc (right): https://codereview.chromium.org/634833003/diff/160001/chrome/browser/file_select_helper.cc#newcode66 chrome/browser/file_select_helper.cc:66: base::DeleteFile(file_path, true); On 2014/10/09 18:41:54, Lei Zhang ...
6 years, 2 months ago (2014-10-09 23:33:36 UTC) #25
Lei Zhang
lgtm, but please give FilePath::AppendRelativePath() a shot and see if it will simplify your code. ...
6 years, 2 months ago (2014-10-10 01:32:28 UTC) #26
erikchen
https://codereview.chromium.org/634833003/diff/160001/chrome/browser/file_select_helper_mac.mm File chrome/browser/file_select_helper_mac.mm (right): https://codereview.chromium.org/634833003/diff/160001/chrome/browser/file_select_helper_mac.mm#newcode65 chrome/browser/file_select_helper_mac.mm:65: // Ignore the first |count| components to create the ...
6 years, 2 months ago (2014-10-10 17:21:39 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634833003/300001
6 years, 2 months ago (2014-10-10 17:22:13 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:300001)
6 years, 2 months ago (2014-10-10 18:27:59 UTC) #30
commit-bot: I haz the power
6 years, 2 months ago (2014-10-10 18:28:36 UTC) #31
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/22de64a3653834acad2580ded12857385e3d4d65
Cr-Commit-Position: refs/heads/master@{#299143}

Powered by Google App Engine
This is Rietveld 408576698