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

Issue 2665953002: Don't blindly do a prefix match when evaluating net::GetExtensionsForMimeType(). (Closed)

Created:
3 years, 10 months ago by eroman
Modified:
3 years, 10 months ago
Reviewers:
xunjieli
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't blindly do a prefix match when evaluating net::GetExtensionsForMimeType(). BUG=685932 Review-Url: https://codereview.chromium.org/2665953002 Cr-Commit-Position: refs/heads/master@{#447290} Committed: https://chromium.googlesource.com/chromium/src/+/f6ef68261dc24e0500a99439575fdd9feeb712a6

Patch Set 1 #

Patch Set 2 : fix for windows hopefully #

Total comments: 2

Patch Set 3 : Address Helen's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -44 lines) Patch
M net/base/mime_util.cc View 1 2 3 chunks +27 lines, -17 lines 0 comments Download
M net/base/mime_util_unittest.cc View 1 2 chunks +34 lines, -27 lines 0 comments Download

Messages

Total messages: 22 (16 generated)
eroman
3 years, 10 months ago (2017-01-30 23:48:51 UTC) #4
xunjieli
lgtm. Very neat! https://codereview.chromium.org/2665953002/diff/20001/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/2665953002/diff/20001/net/base/mime_util.cc#newcode463 net/base/mime_util.cc:463: void GetExtensionsFromHardCodedMappings( nit: Could you add ...
3 years, 10 months ago (2017-01-31 17:21:29 UTC) #11
eroman
Thanks for the review! https://codereview.chromium.org/2665953002/diff/20001/net/base/mime_util.cc File net/base/mime_util.cc (right): https://codereview.chromium.org/2665953002/diff/20001/net/base/mime_util.cc#newcode463 net/base/mime_util.cc:463: void GetExtensionsFromHardCodedMappings( On 2017/01/31 17:21:29, ...
3 years, 10 months ago (2017-01-31 17:41:30 UTC) #12
xunjieli
On 2017/01/31 17:41:30, eroman (slow) wrote: > Thanks for the review! > > https://codereview.chromium.org/2665953002/diff/20001/net/base/mime_util.cc > ...
3 years, 10 months ago (2017-01-31 18:14:12 UTC) #15
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/2665953002/40001
3 years, 10 months ago (2017-01-31 19:00:04 UTC) #19
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 19:12:46 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/f6ef68261dc24e0500a99439575f...

Powered by Google App Engine
This is Rietveld 408576698