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

Issue 471913002: Added a method to detect all supported "image/*" MIME types (Closed)

Created:
6 years, 4 months ago by Yoav Weiss
Modified:
6 years, 3 months ago
Reviewers:
esprehn, jam, Ryan Sleevi
CC:
abarth-chromium, cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, pdr.
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Added a method to detect all supported "image/*" MIME types Since other methods separate supported binary image MIME types from SVG, where SVG was detected as a "non image type" along with XML, and since I needed a method to detect MIME types that can be displayed as an image, I've added such a method. BUG=398443 Committed: https://crrev.com/4096a6ffddeeba5036aa23137bcbfae3f49d7442 Cr-Commit-Position: refs/heads/master@{#291750}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Moved logic into content #

Patch Set 3 : Added a test for SimpleWebMimeRegistryImpl. #

Total comments: 2

Patch Set 4 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -0 lines) Patch
M content/child/simple_webmimeregistry_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/child/simple_webmimeregistry_impl.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
A content/child/simple_webmimeregistry_impl_unittest.cc View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
Yoav Weiss
As a result of the discussion on https://codereview.chromium.org/430583002/ , I'm adding the chrome side changes ...
6 years, 4 months ago (2014-08-14 09:18:48 UTC) #1
esprehn
This lgtm to me, but I think abarth@ or jamesr@ needs to review it for ...
6 years, 4 months ago (2014-08-16 07:50:03 UTC) #2
Yoav Weiss
On 2014/08/16 07:50:03, esprehn wrote: > This lgtm to me, but I think abarth@ or ...
6 years, 4 months ago (2014-08-20 20:02:02 UTC) #3
jam
On 2014/08/20 20:02:02, Yoav Weiss wrote: > On 2014/08/16 07:50:03, esprehn wrote: > > This ...
6 years, 4 months ago (2014-08-21 19:37:28 UTC) #4
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 4 months ago (2014-08-21 19:38:20 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/471913002/1
6 years, 4 months ago (2014-08-21 19:39:40 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-21 22:19:26 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 22:24:31 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/5893)
6 years, 4 months ago (2014-08-21 22:24:32 UTC) #9
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 4 months ago (2014-08-22 00:54:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/471913002/1
6 years, 4 months ago (2014-08-22 00:59:30 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 01:02:06 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-22 01:04:44 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/5945)
6 years, 4 months ago (2014-08-22 01:04:45 UTC) #14
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 4 months ago (2014-08-22 07:34:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/471913002/1
6 years, 4 months ago (2014-08-22 07:36:24 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 07:39:33 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-22 07:45:36 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/6011)
6 years, 4 months ago (2014-08-22 07:45:37 UTC) #19
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 4 months ago (2014-08-22 13:51:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/471913002/1
6 years, 4 months ago (2014-08-22 13:51:13 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-22 13:54:37 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-22 13:57:17 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/6053)
6 years, 4 months ago (2014-08-22 13:57:18 UTC) #24
Ryan Sleevi
I'm gonna push back and say not LGTM. It's not clear - from this CL, ...
6 years, 4 months ago (2014-08-22 23:08:35 UTC) #25
Yoav Weiss
On 2014/08/22 23:08:35, Ryan Sleevi wrote: > I'm gonna push back and say not LGTM. ...
6 years, 4 months ago (2014-08-23 04:57:30 UTC) #26
Ryan Sleevi
The specific concern is how does someone use this in //net? Your response seems to ...
6 years, 4 months ago (2014-08-23 05:09:45 UTC) #27
Yoav Weiss
On 2014/08/23 05:09:45, Ryan Sleevi wrote: > The specific concern is how does someone use ...
6 years, 4 months ago (2014-08-23 05:24:09 UTC) #28
Ryan Sleevi
On Aug 22, 2014 10:24 PM, <yoav@yoav.ws> wrote: > > On 2014/08/23 05:09:45, Ryan Sleevi ...
6 years, 4 months ago (2014-08-23 05:36:53 UTC) #29
Yoav Weiss
On 2014/08/23 05:36:53, Ryan Sleevi wrote: > Right, so I totally understand with esprehn pushing ...
6 years, 4 months ago (2014-08-23 06:17:01 UTC) #30
Ryan Sleevi
Ok, clearing my not with a "LGTM", but I think you should push to abarth/jamesr/jam ...
6 years, 4 months ago (2014-08-25 06:19:37 UTC) #31
Yoav Weiss
On 2014/08/25 06:19:37, Ryan Sleevi wrote: > Ok, clearing my not with a "LGTM", but ...
6 years, 4 months ago (2014-08-25 06:47:28 UTC) #32
jam
lgtm with nits https://codereview.chromium.org/471913002/diff/40001/content/child/simple_webmimeregistry_impl.cc File content/child/simple_webmimeregistry_impl.cc (right): https://codereview.chromium.org/471913002/diff/40001/content/child/simple_webmimeregistry_impl.cc#newcode42 content/child/simple_webmimeregistry_impl.cc:42: || (ascii_mime_type.substr(0, 6) == "image/" nit: ...
6 years, 4 months ago (2014-08-25 18:01:16 UTC) #33
Yoav Weiss
On 2014/08/25 18:01:16, jam wrote: > lgtm with nits Fixed, thanks! > > https://codereview.chromium.org/471913002/diff/40001/content/child/simple_webmimeregistry_impl.cc > ...
6 years, 4 months ago (2014-08-25 18:28:41 UTC) #34
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 4 months ago (2014-08-25 18:28:53 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/471913002/60001
6 years, 4 months ago (2014-08-25 18:30:04 UTC) #36
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-25 19:25:36 UTC) #37
commit-bot: I haz the power
Committed patchset #4 (60001) as 94caf65c7a4519851055491db555fa74038f89a0
6 years, 4 months ago (2014-08-25 20:24:16 UTC) #38
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:37:09 UTC) #39
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4096a6ffddeeba5036aa23137bcbfae3f49d7442
Cr-Commit-Position: refs/heads/master@{#291750}

Powered by Google App Engine
This is Rietveld 408576698