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

Issue 10916201: Make the SavePackage use of the fake download item cleaner around cancellation. (Closed)

Created:
8 years, 3 months ago by Randy Smith (Not in Mondays)
Modified:
8 years, 3 months ago
Reviewers:
benjhayden
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, rdsmith+dwatch_chromium.org
Visibility:
Public.

Description

Make the SavePackage use of the fake download item cleaner around cancellation. This involves making sure not to touch the download item after it's canceled, moving the notification of SavePackage complete out of DownloadManagerImpl (so it's not dependent on persistence race completion), and updating the SavePageBrowserTest to wait for persistence as well as completion before testing history. R=benjhayden@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156367

Patch Set 1 #

Total comments: 4

Patch Set 2 : Incorporated comments. #

Patch Set 3 : Merged to LKGR (156083) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -55 lines) Patch
M chrome/browser/download/save_page_browsertest.cc View 1 16 chunks +162 lines, -37 lines 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/download/download_manager_impl.cc View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/download/save_package.cc View 8 chunks +43 lines, -13 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Randy Smith (Not in Mondays)
Ben: PTAL? You've seen this before, it's just the SavePackage cleanups pulled out of the ...
8 years, 3 months ago (2012-09-09 23:56:37 UTC) #1
benjhayden
Trybots? Run these tests 100 times locally? http://codereview.chromium.org/10916201/diff/1/chrome/browser/download/save_page_browsertest.cc File chrome/browser/download/save_page_browsertest.cc (right): http://codereview.chromium.org/10916201/diff/1/chrome/browser/download/save_page_browsertest.cc#newcode242 chrome/browser/download/save_page_browsertest.cc:242: DCHECK_EQ(1u, items.size()); ...
8 years, 3 months ago (2012-09-10 14:39:58 UTC) #2
Randy Smith (Not in Mondays)
> Trybots? Sorry, not sure how I missed those. In progress. > Run these tests ...
8 years, 3 months ago (2012-09-10 17:53:16 UTC) #3
benjhayden
LGTM when trybots are happy.
8 years, 3 months ago (2012-09-10 18:45:38 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdsmith@chromium.org/10916201/9003
8 years, 3 months ago (2012-09-12 17:32:51 UTC) #5
commit-bot: I haz the power
8 years, 3 months ago (2012-09-12 20:27:34 UTC) #6
Change committed as 156367

Powered by Google App Engine
This is Rietveld 408576698