Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Issue 159345: Implement mimetype sniffing for extensions. (Closed)

Created:
11 years, 5 months ago by Aaron Boodman
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, Chris Evans
Visibility:
Public.

Description

Implement mimetype sniffing for extensions. abarth: can you review the changes to mime_sniffer.cc? paul: everything else? BUG=13296 TEST=Added unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21612

Patch Set 1 #

Patch Set 2 : minor tweaks #

Patch Set 3 : whoops, previous patch was bad #

Total comments: 7

Patch Set 4 : abarth comments #

Patch Set 5 : Add more tests, and a histogram #

Patch Set 6 : more tests #

Total comments: 2

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -14 lines) Patch
M chrome/browser/download/download_manager.h View 1 2 3 4 5 6 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/download/download_manager.cc View 1 2 3 4 5 6 6 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/download/save_package.cc View 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension.h View 1 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 3 chunks +26 lines, -0 lines 0 comments Download
M net/base/mime_sniffer.cc View 1 2 3 4 4 chunks +44 lines, -2 lines 0 comments Download
M net/base/mime_sniffer_unittest.cc View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Aaron Boodman
11 years, 5 months ago (2009-07-24 09:26:26 UTC) #1
abarth-chromium
http://codereview.chromium.org/159345/diff/1010/1017 File net/base/mime_sniffer.cc (right): http://codereview.chromium.org/159345/diff/1010/1017#newcode259 Line 259: if (counter) counter->Add(static_cast<int>(i)); This change will be unnecessary ...
11 years, 5 months ago (2009-07-24 09:37:39 UTC) #2
Aaron Boodman
http://codereview.chromium.org/159345/diff/1010/1017 File net/base/mime_sniffer.cc (right): http://codereview.chromium.org/159345/diff/1010/1017#newcode456 Line 456: url.path().size() - kExtensionLength) On 2009/07/24 09:37:39, abarth wrote: ...
11 years, 5 months ago (2009-07-24 10:36:59 UTC) #3
abarth-chromium
The mime_sniffer part looks good (with two nits). Thanks! http://codereview.chromium.org/159345/diff/41/48 File net/base/mime_sniffer.cc (right): http://codereview.chromium.org/159345/diff/41/48#newcode503 Line ...
11 years, 5 months ago (2009-07-24 17:34:33 UTC) #4
Aaron Boodman
On Fri, Jul 24, 2009 at 10:34 AM, <[email protected]> wrote: > http://codereview.chromium.org/159345/diff/41/49#newcode120 > Line 120: ...
11 years, 5 months ago (2009-07-24 17:38:41 UTC) #5
Paul Godavari
11 years, 5 months ago (2009-07-24 18:52:02 UTC) #6
LGTM (didn't look too hard at the mime sniffer changes since Adam covered that).

Powered by Google App Engine
This is Rietveld 408576698