Chromium Code Reviews
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)
|