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

Issue 16007017: [Resumption 10/12] Use DI::IsDone to check for terminal downloads. (Closed)

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

Description

Use DownloadItem::IsDone to check for terminal downloads. When downloads can be resumed, a download transitioning to INTERRUPTED state is not necessarily entering a terminal state. Therefore, a download being in IN_PROGRESS state is not a sufficient indicator of whether a download may eventually complete. Use DownloadItem::IsDone() to indicate this. TBR=estade BUG=7648 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204526

Patch Set 1 : #

Total comments: 4

Patch Set 2 : IsDone instead of IsPartialDownload #

Patch Set 3 : Merge with r204343 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -37 lines) Patch
M chrome/browser/download/download_danger_prompt.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/download/download_danger_prompt_browsertest.cc View 1 1 chunk +16 lines, -8 lines 0 comments Download
M chrome/browser/download/download_shelf_context_menu.cc View 1 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_item_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_item_impl.cc View 1 4 chunks +26 lines, -12 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/download_item.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M content/public/test/download_test_observer.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M content/public/test/mock_download_item.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
asanka
I'll update https://codereview.chromium.org/14955004/ to depend on this.
7 years, 6 months ago (2013-06-05 15:57:47 UTC) #1
Randy Smith (Not in Mondays)
LGTM (though if the open state isn't persisted, that should go onto your list.) https://codereview.chromium.org/16007017/diff/6001/chrome/browser/download/download_shelf_context_menu.cc ...
7 years, 6 months ago (2013-06-05 20:21:44 UTC) #2
Randy Smith (Not in Mondays)
Whoops, one nit. The issue description says "will eventually complete". I'd suggest instead "may eventually ...
7 years, 6 months ago (2013-06-05 20:22:21 UTC) #3
asanka
+joi for content/public https://codereview.chromium.org/16007017/diff/6001/chrome/browser/download/download_shelf_context_menu.cc File chrome/browser/download/download_shelf_context_menu.cc (right): https://codereview.chromium.org/16007017/diff/6001/chrome/browser/download/download_shelf_context_menu.cc#newcode186 chrome/browser/download/download_shelf_context_menu.cc:186: if (download_item_ && download_item_->IsPartialDownload()) On 2013/06/05 ...
7 years, 6 months ago (2013-06-05 21:33:47 UTC) #4
Jói
//content/public LGTM
7 years, 6 months ago (2013-06-06 11:41:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/16007017/23001
7 years, 6 months ago (2013-06-06 14:48:24 UTC) #6
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=7230
7 years, 6 months ago (2013-06-06 14:55:39 UTC) #7
asanka
TBR=estade for chrome/browser/ui/webui
7 years, 6 months ago (2013-06-06 14:59:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/16007017/23001
7 years, 6 months ago (2013-06-06 14:59:36 UTC) #9
commit-bot: I haz the power
7 years, 6 months ago (2013-06-06 16:54:44 UTC) #10
Message was sent while issue was closed.
Change committed as 204526

Powered by Google App Engine
This is Rietveld 408576698