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

Issue 17515003: [Downloads] Move UpdateObservers out of TransitionTo in DownloadItemImpl (Closed)

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

Description

[Downloads] Move UpdateObservers out of TransitionTo in DownloadItemImpl The UpdateObservers call doesn't take into account other changes that may have been made to the DownloadItem and may not call UpdateObservers when it should. It's still the responsibility of the caller to invoke UpdateObservers if ncessary. Make this requirement explicit. Also only release the DownloadFile and cancel the request when interrupting an IN_PROGRESS download. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208368

Patch Set 1 : #

Patch Set 2 : Add parameter to TransitionTo for controlling notifications #

Patch Set 3 : Merged with r207865 #

Total comments: 8

Patch Set 4 : Restore necessary UpdateObservers() call #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -29 lines) Patch
M content/browser/download/download_browsertest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/download/download_item_impl.h View 1 2 chunks +11 lines, -1 line 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 15 chunks +30 lines, -25 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
asanka
7 years, 6 months ago (2013-06-20 22:45:43 UTC) #1
Randy Smith (Not in Mondays)
So I was a bit uncomfortable with this because I think it makes it much ...
7 years, 6 months ago (2013-06-21 01:19:54 UTC) #2
asanka
On 2013/06/21 01:19:54, rdsmith wrote: > So I was a bit uncomfortable with this because ...
7 years, 6 months ago (2013-06-21 16:55:45 UTC) #3
Randy Smith (Not in Mondays)
https://codereview.chromium.org/17515003/diff/12001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (left): https://codereview.chromium.org/17515003/diff/12001/content/browser/download/download_item_impl.cc#oldcode1314 content/browser/download/download_item_impl.cc:1314: UpdateObservers(); I think this was for the auto_opened_ transition; ...
7 years, 6 months ago (2013-06-21 18:31:28 UTC) #4
asanka
https://codereview.chromium.org/17515003/diff/12001/content/browser/download/download_item_impl.cc File content/browser/download/download_item_impl.cc (left): https://codereview.chromium.org/17515003/diff/12001/content/browser/download/download_item_impl.cc#oldcode1314 content/browser/download/download_item_impl.cc:1314: UpdateObservers(); On 2013/06/21 18:31:28, rdsmith wrote: > I think ...
7 years, 6 months ago (2013-06-21 20:30:56 UTC) #5
Randy Smith (Not in Mondays)
LGTM.
7 years, 6 months ago (2013-06-24 15:21:54 UTC) #6
asanka
On 2013/06/24 15:21:54, rdsmith wrote: > LGTM. Thanks!
7 years, 6 months ago (2013-06-24 22:41:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/17515003/11003
7 years, 6 months ago (2013-06-24 22:42:10 UTC) #8
commit-bot: I haz the power
7 years, 6 months ago (2013-06-25 03:11:09 UTC) #9
Message was sent while issue was closed.
Change committed as 208368

Powered by Google App Engine
This is Rietveld 408576698