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

Issue 10448109: Move function for classifying a string as a mime type into MimeUtil (Closed)

Created:
8 years, 6 months ago by Greg Billock
Modified:
8 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Move function for classifying a string as a mime type into MimeUtil R=rvargas@chromium.org BUG=None TEST=MimeUtilTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=140657

Patch Set 1 #

Total comments: 9

Patch Set 2 : Use array #

Total comments: 10

Patch Set 3 : Rename method. Other fixes. #

Patch Set 4 : Adapt for windows unicode strings. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -31 lines) Patch
M chrome/browser/intents/web_intents_registry.cc View 1 2 1 chunk +1 line, -31 lines 0 comments Download
M net/base/mime_util.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M net/base/mime_util.cc View 1 2 3 chunks +49 lines, -0 lines 0 comments Download
M net/base/mime_util_unittest.cc View 1 2 3 2 chunks +35 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Greg Billock
8 years, 6 months ago (2012-05-31 21:39:10 UTC) #1
cbentzel
Asanka may also be interested.
8 years, 6 months ago (2012-05-31 23:58:48 UTC) #2
rvargas (doing something else)
http://codereview.chromium.org/10448109/diff/1/chrome/browser/intents/web_intents_registry.cc File chrome/browser/intents/web_intents_registry.cc (right): http://codereview.chromium.org/10448109/diff/1/chrome/browser/intents/web_intents_registry.cc#newcode44 chrome/browser/intents/web_intents_registry.cc:44: return net::MatchesMimeType(UTF16ToUTF8(type_str)); IsStringMimeType? http://codereview.chromium.org/10448109/diff/1/net/base/mime_util.cc File net/base/mime_util.cc (right): http://codereview.chromium.org/10448109/diff/1/net/base/mime_util.cc#newcode491 net/base/mime_util.cc:491: ...
8 years, 6 months ago (2012-06-01 01:51:14 UTC) #3
Greg Billock
http://codereview.chromium.org/10448109/diff/1/net/base/mime_util.cc File net/base/mime_util.cc (right): http://codereview.chromium.org/10448109/diff/1/net/base/mime_util.cc#newcode491 net/base/mime_util.cc:491: bool MimeUtil::IsStringMimeType(const std::string& type_string) const { On 2012/06/01 01:51:14, ...
8 years, 6 months ago (2012-06-01 04:58:22 UTC) #4
rvargas (doing something else)
http://codereview.chromium.org/10448109/diff/1/net/base/mime_util.cc File net/base/mime_util.cc (right): http://codereview.chromium.org/10448109/diff/1/net/base/mime_util.cc#newcode491 net/base/mime_util.cc:491: bool MimeUtil::IsStringMimeType(const std::string& type_string) const { On 2012/06/01 04:58:22, ...
8 years, 6 months ago (2012-06-01 19:11:25 UTC) #5
Greg Billock
http://codereview.chromium.org/10448109/diff/1/net/base/mime_util.cc File net/base/mime_util.cc (right): http://codereview.chromium.org/10448109/diff/1/net/base/mime_util.cc#newcode497 net/base/mime_util.cc:497: StringToLowerASCII(&raw_type); On 2012/06/01 19:11:25, rvargas wrote: > either this ...
8 years, 6 months ago (2012-06-05 01:08:55 UTC) #6
rvargas (doing something else)
Mostly nits. https://chromiumcodereview.appspot.com/10448109/diff/8001/chrome/browser/intents/web_intents_registry.cc File chrome/browser/intents/web_intents_registry.cc (right): https://chromiumcodereview.appspot.com/10448109/diff/8001/chrome/browser/intents/web_intents_registry.cc#newcode44 chrome/browser/intents/web_intents_registry.cc:44: return net::MatchesMimeType(UTF16ToUTF8(type_str)); Still using a different fn ...
8 years, 6 months ago (2012-06-05 17:54:07 UTC) #7
Greg Billock
https://chromiumcodereview.appspot.com/10448109/diff/8001/chrome/browser/intents/web_intents_registry.cc File chrome/browser/intents/web_intents_registry.cc (right): https://chromiumcodereview.appspot.com/10448109/diff/8001/chrome/browser/intents/web_intents_registry.cc#newcode44 chrome/browser/intents/web_intents_registry.cc:44: return net::MatchesMimeType(UTF16ToUTF8(type_str)); On 2012/06/05 17:54:07, rvargas wrote: > Still ...
8 years, 6 months ago (2012-06-05 18:09:53 UTC) #8
rvargas (doing something else)
LGTM
8 years, 6 months ago (2012-06-05 18:31:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/10448109/17001
8 years, 6 months ago (2012-06-05 18:36:42 UTC) #10
commit-bot: I haz the power
Try job failure for 10448109-17001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-05 19:29:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/10448109/23003
8 years, 6 months ago (2012-06-05 22:25:24 UTC) #12
commit-bot: I haz the power
8 years, 6 months ago (2012-06-06 00:06:15 UTC) #13
Change committed as 140657

Powered by Google App Engine
This is Rietveld 408576698