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

Issue 1544743003: Revert of [Download] Treat RESUMING_INTERNAL as IN_PROGRESS in DownloadItem. (Closed)

Created:
5 years ago by Noel Gordon
Modified:
5 years ago
Reviewers:
asanka, svaldez
CC:
chromium-reviews, asanka, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@unify-downloader-core
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of [Download] Treat RESUMING_INTERNAL as IN_PROGRESS in DownloadItem. (patchset #2 id:20001 of https://codereview.chromium.org/1544653002/ ) Reason for revert: DownloadTest.Resumption_Automatic began failing in browser_tests on Windows-XP-SP3 after this patch landed. See: https://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%281%29/builds/42034 Reverting to see if we can green the chromium tree. Original issue's description: > [Download] Treat RESUMING_INTERNAL as IN_PROGRESS in DownloadItem. > > The RESUMING_INTERNAL state is used to indicate that the DownloadItem > has commenced a resumption attempt. The DownloadItem will remain in this > state until the network request receives a response. > > Formerly, we treated this internal state as INTERRUPTED for all entities > that are observing the download item, including the UI. However, in > retrospect, this doesn't make sense and prevents the DownloadItem from > cleanly handling cases where it needs to transition back to an > interrupted state following a resumption attempt. In the latter case, > the download would otherwise try to transition from INTERRUPTED -> > INTERRUPTED which doesn't make a whole lot of sense to an outside > observer. > > In addition, keeping the download in the INTERRUPTED state prevents an > outside observer from being able to cleanly tell when a resumption > attempt has begun. Furthermore, the INTERRUPTED state exhibited while an > automatic resumption is being attempted is not actionable to all outside > observers. > > To rectify these, this change makes the RESUMING_INTERNAL state be > visible to external observers as IN_PROGRESS. > > BUG=7648 > R=svaldez@chromium.org > > Committed: https://crrev.com/ad29c15e3115a256cec6ee0ab0ba3138ef087569 > Cr-Commit-Position: refs/heads/master@{#366542} TBR=svaldez@chromium.org,asanka@chromium.org NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=7648 Committed: https://crrev.com/5a45da8d4a87ffc6100ab8b684f3ad2eaef639b4 Cr-Commit-Position: refs/heads/master@{#366574}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -16 lines) Patch
M content/browser/download/download_item_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_item_impl_unittest.cc View 8 chunks +11 lines, -14 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
Noel Gordon
Created Revert of [Download] Treat RESUMING_INTERNAL as IN_PROGRESS in DownloadItem.
5 years ago (2015-12-22 09:25:18 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1544743003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1544743003/1
5 years ago (2015-12-22 09:25:36 UTC) #2
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years ago (2015-12-22 09:26:07 UTC) #4
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/5a45da8d4a87ffc6100ab8b684f3ad2eaef639b4 Cr-Commit-Position: refs/heads/master@{#366574}
5 years ago (2015-12-22 09:27:01 UTC) #6
Noel Gordon
5 years ago (2015-12-22 12:13:36 UTC) #7
Message was sent while issue was closed.
Next build after this patch landed went green:
https://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%281%29/build...

Powered by Google App Engine
This is Rietveld 408576698