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

Issue 14640020: [Resumption 9/11] Handle filename determination for resumed downloads. (Closed)

Created:
7 years, 7 months ago by asanka
Modified:
7 years, 6 months ago
CC:
chromium-reviews, asanka, nkostylev+watch_chromium.org, benjhayden+dwatch_chromium.org, tfarina, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

[Downloads] Handle filename determination for resumed downloads. Interrupted downloads that are being resumed will go through another cycle of filename determination. This allows ChromeDownloadManagerDelegate to properly handle path reservation and Drive downloads during resumption. TBR=joi BUG=7648 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203780

Patch Set 1 : #

Total comments: 12

Patch Set 2 : Merge with r201622 #

Total comments: 1

Patch Set 3 : Address comments #

Total comments: 16

Patch Set 4 : Merge with r202661 #

Patch Set 5 : Address comments #

Patch Set 6 : Merge with r203194 #

Total comments: 4

Patch Set 7 : Add comment and reuse intermediate name. #

Patch Set 8 : Check for directory change and add tests. #

Patch Set 9 : Simplify GetPlatformDownloadPath #

Patch Set 10 : Fix GCC build #

Total comments: 6

Patch Set 11 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+634 lines, -94 lines) Patch
M chrome/browser/chromeos/drive/download_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 5 6 7 8 3 chunks +41 lines, -26 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate_unittest.cc View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/download/download_target_determiner.h View 1 2 3 4 5 6 chunks +26 lines, -2 lines 0 comments Download
M chrome/browser/download/download_target_determiner.cc View 1 2 3 4 5 6 7 8 9 10 14 chunks +86 lines, -34 lines 0 comments Download
M chrome/browser/download/download_target_determiner_delegate.h View 1 2 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/download/download_target_determiner_unittest.cc View 1 2 3 4 5 6 7 8 9 11 chunks +444 lines, -16 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 4 5 6 2 chunks +13 lines, -12 lines 0 comments Download
M content/public/browser/download_item.h View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
asanka
7 years, 7 months ago (2013-05-15 14:43:58 UTC) #1
Randy Smith (Not in Mondays)
Initial comments. I'm a bit nervous about landing this functionality without drive download info being ...
7 years, 7 months ago (2013-05-15 19:00:18 UTC) #2
Randy Smith (Not in Mondays)
And an additional comment :-}. https://codereview.chromium.org/14640020/diff/2001/chrome/browser/download/download_target_determiner.cc File chrome/browser/download/download_target_determiner.cc (right): https://codereview.chromium.org/14640020/diff/2001/chrome/browser/download/download_target_determiner.cc#newcode77 chrome/browser/download/download_target_determiner.cc:77: content::DOWNLOAD_INTERRUPT_REASON_NONE && This is ...
7 years, 7 months ago (2013-05-15 19:02:13 UTC) #3
asanka
https://codereview.chromium.org/14640020/diff/2001/chrome/browser/chromeos/drive/download_handler.cc File chrome/browser/chromeos/drive/download_handler.cc (right): https://codereview.chromium.org/14640020/diff/2001/chrome/browser/chromeos/drive/download_handler.cc#newcode251 chrome/browser/chromeos/drive/download_handler.cc:251: break; On 2013/05/15 19:00:18, rdsmith wrote: > How does ...
7 years, 7 months ago (2013-05-23 20:30:37 UTC) #4
Randy Smith (Not in Mondays)
https://codereview.chromium.org/14640020/diff/2001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): https://codereview.chromium.org/14640020/diff/2001/content/browser/download/download_item_impl.cc#newcode1180 content/browser/download/download_item_impl.cc:1180: On 2013/05/23 20:30:37, asanka wrote: > On 2013/05/15 19:00:18, ...
7 years, 7 months ago (2013-05-24 01:53:55 UTC) #5
asanka
https://codereview.chromium.org/14640020/diff/2001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): https://codereview.chromium.org/14640020/diff/2001/content/browser/download/download_item_impl.cc#newcode1180 content/browser/download/download_item_impl.cc:1180: On 2013/05/24 01:53:55, rdsmith wrote: > On 2013/05/23 20:30:37, ...
7 years, 6 months ago (2013-05-29 22:30:11 UTC) #6
Randy Smith (Not in Mondays)
LGTM with below comment request; you're welcome to use the boolean arg or not. https://codereview.chromium.org/14640020/diff/2001/content/browser/download/download_item_impl.cc ...
7 years, 6 months ago (2013-05-30 21:26:23 UTC) #7
asanka
Could you take a quick peek at the delta from patchset 6? https://codereview.chromium.org/14640020/diff/2001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc ...
7 years, 6 months ago (2013-05-31 19:23:58 UTC) #8
Randy Smith (Not in Mondays)
Diffs from PS6 LGTM. https://codereview.chromium.org/14640020/diff/100001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): https://codereview.chromium.org/14640020/diff/100001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode114 chrome/browser/download/chrome_download_manager_delegate.cc:114: // Drive downloads always return ...
7 years, 6 months ago (2013-05-31 21:18:19 UTC) #9
asanka
https://codereview.chromium.org/14640020/diff/100001/chrome/browser/download/chrome_download_manager_delegate.cc File chrome/browser/download/chrome_download_manager_delegate.cc (right): https://codereview.chromium.org/14640020/diff/100001/chrome/browser/download/chrome_download_manager_delegate.cc#newcode114 chrome/browser/download/chrome_download_manager_delegate.cc:114: // Drive downloads always return the target path for ...
7 years, 6 months ago (2013-05-31 21:58:40 UTC) #10
asanka
+satorux: For chrome/browser/chromeos/drive/ +joi: TBR for comment change.
7 years, 6 months ago (2013-05-31 22:06:54 UTC) #11
Jói
LGTM for //content/public.
7 years, 6 months ago (2013-06-02 09:49:07 UTC) #12
satorux1
hashimoto would be the right person to review chrome/browser/chromeos/drive/download_handler.cc
7 years, 6 months ago (2013-06-03 00:58:50 UTC) #13
hashimoto
chrome/browser/chromeos/drive/download_handler.cc lgtm with nits, assuming you tested the new code works as intended. https://codereview.chromium.org/14640020/diff/100001/chrome/browser/chromeos/drive/download_handler.cc File ...
7 years, 6 months ago (2013-06-03 06:31:03 UTC) #14
asanka
Thanks! https://codereview.chromium.org/14640020/diff/100001/chrome/browser/chromeos/drive/download_handler.cc File chrome/browser/chromeos/drive/download_handler.cc (right): https://codereview.chromium.org/14640020/diff/100001/chrome/browser/chromeos/drive/download_handler.cc#newcode247 chrome/browser/chromeos/drive/download_handler.cc:247: case DownloadItem::INTERRUPTED: On 2013/06/03 06:31:03, hashimoto wrote: > ...
7 years, 6 months ago (2013-06-03 18:35:31 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/14640020/112001
7 years, 6 months ago (2013-06-03 20:38:10 UTC) #16
commit-bot: I haz the power
7 years, 6 months ago (2013-06-03 21:55:47 UTC) #17
Message was sent while issue was closed.
Change committed as 203780

Powered by Google App Engine
This is Rietveld 408576698