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

Issue 2516823002: [Downloads] Consolidate Java DownloadItem/Info creation (Closed)

Created:
4 years, 1 month ago by gone
Modified:
4 years, 1 month ago
Reviewers:
qinmin
CC:
chromium-reviews, asanka, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Downloads] Consolidate Java DownloadItem/Info creation Consolidates how DownloadInfos are created across DownloadManagerService and DownloadController. Differences: * DownloadItems created for DownloadController previously used DownloadItem::GetURL(). They've been changed to use DownloadItem::GetTabURL() instead to match DownloadManagerService. * Similiarly, DownloadController used to use the DownloadItem::GetTargetFilePath().BaseName(). This has been switched to DownloadItem::GetFileNameToReportUser(). * "Referrer" is more common than "referer" in the codebase, despite the historical spec misspelling. Switch the DownloadInfo class to use that instead. Request headers are created using the traditionally wrong "referer". Removed: * There was an unused method in DownloadManagerService. Nuked it. BUG=654630 Committed: https://crrev.com/d4c7abab4259e2aba07659b3f71b288ff61ccec6 Cr-Commit-Position: refs/heads/master@{#433650}

Patch Set 1 #

Patch Set 2 : Rebased #

Messages

Total messages: 17 (12 generated)
gone
4 years, 1 month ago (2016-11-19 00:57:33 UTC) #4
qinmin
lgtm
4 years, 1 month ago (2016-11-21 17:45:14 UTC) #5
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/2516823002/20001
4 years, 1 month ago (2016-11-21 20:51:42 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-21 21:08:26 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-21 21:13:35 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/d4c7abab4259e2aba07659b3f71b288ff61ccec6
Cr-Commit-Position: refs/heads/master@{#433650}

Powered by Google App Engine
This is Rietveld 408576698