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

Issue 2626903005: [Download Home] Add missing files to map (Closed)

Created:
3 years, 11 months ago by gone
Modified:
3 years, 11 months ago
Reviewers:
Theresa
CC:
chromium-reviews, asanka, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Download Home] Add missing files to map Problematically, new DownloadItems are created with no file name when a download first starts. This means that the DownloadHistoryItemWrapper is added to the wrong part of the FilePathsToDownloadItemsMap and can't be removed until the user re-opens Download Home, which correctly records the DownloadItem in the correct place. * Change the behavior so a download completion event also triggers the item to be added to the map -- this time with the correct file path. * Also make the FilePathsToDownloadItemsMap use a HashSet for its secondary data structure. It ends up slightly cleaner IMO. * Cleans up the StubbedProvider so that it can take in specific download percentages more easily. * Add a new test for this behavior. BUG=670583 TEST=DownloadHistoryAdapterTest* Review-Url: https://codereview.chromium.org/2626903005 Cr-Commit-Position: refs/heads/master@{#442960} Committed: https://chromium.googlesource.com/chromium/src/+/ff8ffc7fe93a0348148eea2221b093feb711da9a

Patch Set 1 #

Patch Set 2 : Add test #

Patch Set 3 : Rebasing #

Messages

Total messages: 12 (7 generated)
gone
3 years, 11 months ago (2017-01-11 03:27:34 UTC) #3
gone
Er, not sure if I sent this just now or what, but PTAL.
3 years, 11 months ago (2017-01-11 03:28:26 UTC) #4
Theresa
lgtm
3 years, 11 months ago (2017-01-11 16:57:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2626903005/40001
3 years, 11 months ago (2017-01-11 17:53:26 UTC) #9
commit-bot: I haz the power
3 years, 11 months ago (2017-01-11 18:40:39 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/ff8ffc7fe93a0348148eea2221b0...

Powered by Google App Engine
This is Rietveld 408576698