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

Issue 46020: Implement DownloadFile::Rename() for posix. Downloads work on linux! (Closed)

Created:
11 years, 9 months ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Implement DownloadFile::Rename() for posix. Downloads work on linux! Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=11659

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -12 lines) Patch
M base/file_util.h View 1 chunk +3 lines, -1 line 0 comments Download
M base/file_util_posix.cc View 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/download/download_file.cc View 1 2 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Evan Stade
well, in a very limited sense. Try this: navigate to a web page and right ...
11 years, 9 months ago (2009-03-13 00:39:01 UTC) #1
tony
Paul might know why the delete is there. LGTM. http://codereview.chromium.org/46020/diff/1/2 File chrome/browser/download/download_file.cc (right): http://codereview.chromium.org/46020/diff/1/2#newcode110 Line ...
11 years, 9 months ago (2009-03-13 06:16:13 UTC) #2
Mark Larson
http://codereview.chromium.org/46020/diff/1/2 File chrome/browser/download/download_file.cc (right): http://codereview.chromium.org/46020/diff/1/2#newcode107 Line 107: // TODO(estade): copying sucks for large downloads. crbug.com/8737 ...
11 years, 9 months ago (2009-03-13 07:22:44 UTC) #3
Evan Stade
http://codereview.chromium.org/46020/diff/1/2 File chrome/browser/download/download_file.cc (right): http://codereview.chromium.org/46020/diff/1/2#newcode107 Line 107: // TODO(estade): copying sucks for large downloads. crbug.com/8737 ...
11 years, 9 months ago (2009-03-13 18:57:39 UTC) #4
tony
I don't feel strongly either way, but it seems to be what the windows code ...
11 years, 9 months ago (2009-03-13 19:05:54 UTC) #5
Evan Stade
> I don't feel strongly either way, but it seems to be what the windows ...
11 years, 9 months ago (2009-03-13 19:11:50 UTC) #6
tony
11 years, 9 months ago (2009-03-13 19:25:51 UTC) #7
On 2009/03/13 19:11:50, estade wrote:
> > I don't feel strongly either way, but it seems to be what the windows code
is
> > doing.  The windows code and non-windows code should be doing the same
thing.
> 
> hm? The windows code returns early if the move fails and doesn't delete the
> original file. Or are you talking about the file_util function? There, too,
the
> delete only occurs on a successful copy. Or am I missing something?

Oh, I see.  Then we can probably remove the delete call from the windows code
(as your todo suggests).  Let's do that then.  LGTM.

Powered by Google App Engine
This is Rietveld 408576698