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

Issue 66993008: [Downloads] Cleanup DownloadResourceHandler (Closed)

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

Description

[Downloads] Cleanup DownloadResourceHandler * Avoid duplicate assignments. * Don't calculate whether strong validators are present in an HTTP response. A spec compliant implementation of this determination is already present elsewhere. BUG=7648 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236825

Patch Set 1 #

Total comments: 4

Patch Set 2 : Deprecate UMA and check return value from GetMIMEType. #

Patch Set 3 : Merge with r235803 #

Total comments: 2

Patch Set 4 : Check return value of EnumerateHeader call. #

Total comments: 2

Patch Set 5 : Annotate histogram enum with date it became obsolete. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -89 lines) Patch
M content/browser/download/download_create_info.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/download/download_create_info.cc View 1 chunk +8 lines, -9 lines 0 comments Download
M content/browser/download/download_resource_handler.h View 1 2 2 chunks +0 lines, -11 lines 0 comments Download
M content/browser/download/download_resource_handler.cc View 1 2 3 6 chunks +35 lines, -53 lines 0 comments Download
M content/browser/download/download_stats.h View 1 2 chunks +14 lines, -7 lines 0 comments Download
M content/browser/download/download_stats.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
asanka
7 years, 1 month ago (2013-11-18 18:33:42 UTC) #1
Randy Smith (Not in Mondays)
How is this related to the GetWebContents() issue? https://codereview.chromium.org/66993008/diff/1/content/browser/download/download_resource_handler.cc File content/browser/download/download_resource_handler.cc (right): https://codereview.chromium.org/66993008/diff/1/content/browser/download/download_resource_handler.cc#newcode184 content/browser/download/download_resource_handler.cc:184: headers->GetMimeType(&info->original_mime_type); ...
7 years, 1 month ago (2013-11-18 22:07:01 UTC) #2
asanka
Originally this was part of the cleanup done before moving the logic into the DownloadRequestModel. ...
7 years, 1 month ago (2013-11-19 23:53:47 UTC) #3
Randy Smith (Not in Mondays)
LGTM with waffle below. https://codereview.chromium.org/66993008/diff/150001/content/browser/download/download_resource_handler.cc File content/browser/download/download_resource_handler.cc (right): https://codereview.chromium.org/66993008/diff/150001/content/browser/download/download_resource_handler.cc#newcode174 content/browser/download/download_resource_handler.cc:174: headers->EnumerateHeader(NULL, "ETag", &info->etag); I'm feeling ...
7 years, 1 month ago (2013-11-20 21:35:56 UTC) #4
asanka
https://codereview.chromium.org/66993008/diff/150001/content/browser/download/download_resource_handler.cc File content/browser/download/download_resource_handler.cc (right): https://codereview.chromium.org/66993008/diff/150001/content/browser/download/download_resource_handler.cc#newcode174 content/browser/download/download_resource_handler.cc:174: headers->EnumerateHeader(NULL, "ETag", &info->etag); On 2013/11/20 21:35:56, rdsmith wrote: > ...
7 years, 1 month ago (2013-11-21 17:30:21 UTC) #5
asanka
rdsmith: Thanks! asvitkine: Could you look at histograms.xml for owners approval?
7 years, 1 month ago (2013-11-21 17:33:18 UTC) #6
Alexei Svitkine (slow)
histograms lgtm with a nit https://codereview.chromium.org/66993008/diff/200001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/66993008/diff/200001/tools/metrics/histograms/histograms.xml#newcode21923 tools/metrics/histograms/histograms.xml:21923: + <int value="15" label="Supports ...
7 years, 1 month ago (2013-11-21 17:39:53 UTC) #7
asanka
Thanks! https://codereview.chromium.org/66993008/diff/200001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/66993008/diff/200001/tools/metrics/histograms/histograms.xml#newcode21923 tools/metrics/histograms/histograms.xml:21923: + <int value="15" label="Supports ranges and strong ETag ...
7 years, 1 month ago (2013-11-21 18:20:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asanka@chromium.org/66993008/200002
7 years, 1 month ago (2013-11-22 18:25:16 UTC) #9
commit-bot: I haz the power
7 years, 1 month ago (2013-11-22 21:11:30 UTC) #10
Message was sent while issue was closed.
Change committed as 236825

Powered by Google App Engine
This is Rietveld 408576698