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

Issue 2825051: Add support for a directory file chooser command, which creates a file list b... (Closed)

Created:
10 years, 5 months ago by John Gregg
Modified:
9 years ago
CC:
chromium-reviews, ben+cc_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Add support for a directory file chooser command, which creates a file list by enumerating all the files in the selected directory. BUG=47162 TEST=layout test input-file-directory-upload.html, or www/~johnnyg/dir_upload/ demo page Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57222

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : lint fixes, no try #

Patch Set 4 : lint fixes, no try #

Total comments: 7

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 8

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+249 lines, -79 lines) Patch
M chrome/browser/renderer_host/render_view_host.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.h View 3 chunks +14 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 8 chunks +6 lines, -15 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 6 chunks +7 lines, -56 lines 0 comments Download
A chrome/browser/tab_contents/tab_contents_file_select_helper.h View 7 8 9 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/tab_contents/tab_contents_file_select_helper.cc View 7 8 9 1 chunk +129 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 2 3 4 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 3 4 5 6 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 6 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
John Gregg
10 years, 5 months ago (2010-07-16 20:00:14 UTC) #1
Andrew T Wilson (Slow)
LGTM, assuming that compile error is due to a pending webkit roll.
10 years, 5 months ago (2010-07-16 20:24:34 UTC) #2
Andrew T Wilson (Slow)
http://codereview.chromium.org/2825051/diff/1/4 File chrome/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/2825051/diff/1/4#newcode2860 chrome/browser/tab_contents/tab_contents.cc:2860: // TODO(johnnyg): This probably should be done async on ...
10 years, 5 months ago (2010-07-16 20:24:47 UTC) #3
brettw
The good news is that your TODOs are exactly correct, we don't want to do ...
10 years, 5 months ago (2010-07-18 23:49:26 UTC) #4
John Gregg
On 2010/07/18 23:49:26, brettw wrote: > The good news is that your TODOs are exactly ...
10 years, 5 months ago (2010-07-19 22:27:11 UTC) #5
Andrew T Wilson (Slow)
LGTM, but clearly it'd be good to let brett take a look also. http://codereview.chromium.org/2825051/diff/26001/27002 File ...
10 years, 5 months ago (2010-07-20 01:21:32 UTC) #6
brettw
http://codereview.chromium.org/2825051/diff/26001/27003 File chrome/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/2825051/diff/26001/27003#newcode2891 chrome/browser/tab_contents/tab_contents.cc:2891: file_util::GetFileInfo(path, &info); GetFileInfo also counts as file I/O, so ...
10 years, 5 months ago (2010-07-22 18:08:16 UTC) #7
John Gregg
> Does that make sense? I haven't thought through the implementation. If you need > ...
10 years, 5 months ago (2010-07-22 18:21:10 UTC) #8
brettw
> I think that's reasonable, as long as it is a separate mode. There are ...
10 years, 5 months ago (2010-07-22 18:24:14 UTC) #9
John Gregg
On 2010/07/22 18:24:14, brettw wrote: > > I think that's reasonable, as long as it ...
10 years, 5 months ago (2010-07-22 18:31:38 UTC) #10
brettw
Thanks a lot!
10 years, 5 months ago (2010-07-22 18:55:44 UTC) #11
darin (slow to review)
http://codereview.chromium.org/2825051/diff/26001/27001 File chrome/browser/file_enumerator_task.cc (right): http://codereview.chromium.org/2825051/diff/26001/27001#newcode34 chrome/browser/file_enumerator_task.cc:34: while (!(file = enumerator.Next()).empty()) since this could be a ...
10 years, 5 months ago (2010-07-23 06:23:17 UTC) #12
John Gregg
Okay, let me try to reconcile the various pieces of advice. Now that I know ...
10 years, 5 months ago (2010-07-23 17:11:08 UTC) #13
brettw
On 2010/07/23 17:11:08, John Gregg wrote: > Okay, let me try to reconcile the various ...
10 years, 5 months ago (2010-07-23 21:08:37 UTC) #14
John Gregg
Okay, please take another look at this patch. I had to make some changes to ...
10 years, 4 months ago (2010-08-23 05:18:44 UTC) #15
brettw
Thanks, this is looking better. I think we can make this, along with the existing ...
10 years, 4 months ago (2010-08-23 22:07:30 UTC) #16
John Gregg
> To pipe the commands to the helper class, I'd move the commands you need ...
10 years, 4 months ago (2010-08-23 22:18:55 UTC) #17
brettw
On Mon, Aug 23, 2010 at 3:18 PM, <johnnyg@chromium.org> wrote: >> To pipe the commands ...
10 years, 4 months ago (2010-08-23 22:41:11 UTC) #18
John Gregg
On 2010/08/23 22:41:11, brettw wrote: > On Mon, Aug 23, 2010 at 3:18 PM, <mailto:johnnyg@chromium.org> ...
10 years, 4 months ago (2010-08-24 00:00:13 UTC) #19
brettw
This is much nicer! Just some minor comments. http://codereview.chromium.org/2825051/diff/50002/45005 File chrome/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/2825051/diff/50002/45005#newcode16 chrome/browser/tab_contents/tab_contents.cc:16: #include ...
10 years, 4 months ago (2010-08-24 16:14:20 UTC) #20
John Gregg
Okay, new patch posted. http://codereview.chromium.org/2825051/diff/50002/45005 File chrome/browser/tab_contents/tab_contents.cc (right): http://codereview.chromium.org/2825051/diff/50002/45005#newcode16 chrome/browser/tab_contents/tab_contents.cc:16: #include "base/file_util.h" On 2010/08/24 16:14:21, ...
10 years, 4 months ago (2010-08-24 16:59:03 UTC) #21
brettw
10 years, 4 months ago (2010-08-24 17:51:44 UTC) #22
LGTM!

Powered by Google App Engine
This is Rietveld 408576698