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

Issue 183743019: delete file if resume mode is invalid. DCHECK fails in DownloadItemImpl::OnDownloadRenamedToFinalNa… (Closed)

Created:
6 years, 9 months ago by baranovich
Modified:
6 years, 9 months ago
Reviewers:
asanka
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, darin-cc_chromium.org, jam, joi+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

delete file when doing Interrupt() if resume mode is invalid. The partial file, if exists, can no longer be used to complete the download. R=asanka@chromium.org BUG=none TEST=DownloadItemTest.UnresumableInterrupt Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255506

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix codereview remarks #

Patch Set 3 : more readable comment #

Patch Set 4 : unit tests for RESUME_MODE_INVALID interrupt #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -3 lines) Patch
M content/browser/download/download_item_impl.cc View 1 2 3 2 chunks +8 lines, -3 lines 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
baranovich
6 years, 9 months ago (2014-03-04 17:05:11 UTC) #1
baranovich
Hi all, not sure whether this should be fixed or DCHECK condition should be modified. ...
6 years, 9 months ago (2014-03-04 17:08:20 UTC) #2
asanka
https://codereview.chromium.org/183743019/diff/1/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (right): https://codereview.chromium.org/183743019/diff/1/content/browser/download/download_item_impl.cc#newcode1451 content/browser/download/download_item_impl.cc:1451: (resume_mode == RESUME_MODE_INVALID && You can just check for ...
6 years, 9 months ago (2014-03-04 21:17:49 UTC) #3
baranovich
On 2014/03/04 21:17:49, asanka wrote: > https://codereview.chromium.org/183743019/diff/1/content/browser/download/download_item_impl.cc > File content/browser/download/download_item_impl.cc (right): > > https://codereview.chromium.org/183743019/diff/1/content/browser/download/download_item_impl.cc#newcode1451 > ...
6 years, 9 months ago (2014-03-05 10:08:07 UTC) #4
asanka
On 2014/03/05 10:08:07, baranovich wrote: > On 2014/03/04 21:17:49, asanka wrote: > > > https://codereview.chromium.org/183743019/diff/1/content/browser/download/download_item_impl.cc ...
6 years, 9 months ago (2014-03-05 21:46:33 UTC) #5
asanka
On 2014/03/05 21:46:33, asanka wrote: > On 2014/03/05 10:08:07, baranovich wrote: > > On 2014/03/04 ...
6 years, 9 months ago (2014-03-05 21:47:07 UTC) #6
baranovich
On 2014/03/05 21:47:07, asanka wrote: > On 2014/03/05 21:46:33, asanka wrote: > > On 2014/03/05 ...
6 years, 9 months ago (2014-03-06 16:36:43 UTC) #7
asanka
LGTM. Thanks for doing this! Can you update the CL description before landing? The reason ...
6 years, 9 months ago (2014-03-06 16:54:56 UTC) #8
baranovich
The CQ bit was checked by baranovich@yandex-team.ru
6 years, 9 months ago (2014-03-06 17:08:46 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/baranovich@yandex-team.ru/183743019/50001
6 years, 9 months ago (2014-03-06 17:13:17 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 17:26:15 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 9 months ago (2014-03-06 17:26:15 UTC) #12
baranovich
The CQ bit was checked by baranovich@yandex-team.ru
6 years, 9 months ago (2014-03-06 17:27:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/baranovich@yandex-team.ru/183743019/50001
6 years, 9 months ago (2014-03-06 17:27:25 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 18:24:51 UTC) #15
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) telemetry_perf_unittests, telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=233267
6 years, 9 months ago (2014-03-06 18:24:52 UTC) #16
baranovich
The CQ bit was checked by baranovich@yandex-team.ru
6 years, 9 months ago (2014-03-06 19:24:23 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/baranovich@yandex-team.ru/183743019/50001
6 years, 9 months ago (2014-03-06 19:29:58 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/baranovich@yandex-team.ru/183743019/50001
6 years, 9 months ago (2014-03-06 21:01:37 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/baranovich@yandex-team.ru/183743019/50001
6 years, 9 months ago (2014-03-06 21:55:54 UTC) #20
commit-bot: I haz the power
6 years, 9 months ago (2014-03-07 03:20:09 UTC) #21
Message was sent while issue was closed.
Change committed as 255506

Powered by Google App Engine
This is Rietveld 408576698