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

Issue 9296005: Delete net::GetHeaderParamValue (Closed)

Created:
8 years, 11 months ago by abarth-chromium
Modified:
8 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Delete net::GetHeaderParamValue This function is a trap. It's a quick-and-dirty parser that has many nutty quirks. There's only one caller left, and that callers should really be using a Content-Type-specific parser anyway. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=119790

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : Delete net::GetHeaderParamValue #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -160 lines) Patch
M net/base/net_util.h View 1 2 3 2 chunks +0 lines, -19 lines 0 comments Download
M net/base/net_util.cc View 1 2 3 1 chunk +0 lines, -44 lines 0 comments Download
M net/base/net_util_unittest.cc View 1 2 3 1 chunk +0 lines, -61 lines 0 comments Download
M net/http/http_response_headers.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M net/http/http_util.h View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M net/http/http_util.cc View 1 2 3 3 chunks +37 lines, -30 lines 0 comments Download
M net/http/http_util_unittest.cc View 1 2 3 1 chunk +85 lines, -0 lines 0 comments Download
M webkit/glue/multipart_response_delegate.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M webkit/glue/weburlloader_impl.cc View 1 2 3 2 chunks +7 lines, -2 lines 1 comment Download

Messages

Total messages: 14 (0 generated)
abarth-chromium
8 years, 11 months ago (2012-01-27 10:30:07 UTC) #1
asanka
http://codereview.chromium.org/9296005/diff/1/net/http/http_util.cc File net/http/http_util.cc (right): http://codereview.chromium.org/9296005/diff/1/net/http/http_util.cc#newcode136 net/http/http_util.cc:136: static const char boundary_str[] = "boundary="; Isn't *LWSP-char allowed ...
8 years, 11 months ago (2012-01-27 16:18:58 UTC) #2
abarth-chromium
On 2012/01/27 16:18:58, asanka wrote: > GetHeaderParamValue() allowed LWSP-char around symbols. I wonder if we ...
8 years, 11 months ago (2012-01-27 18:49:27 UTC) #3
asanka
On 2012/01/27 18:49:27, abarth wrote: > On 2012/01/27 16:18:58, asanka wrote: > > GetHeaderParamValue() allowed ...
8 years, 11 months ago (2012-01-27 18:58:50 UTC) #4
abarth-chromium
Fixenated. PTAL.
8 years, 11 months ago (2012-01-27 22:12:05 UTC) #5
asanka
LGTM. http://codereview.chromium.org/9296005/diff/3004/net/http/http_util.cc File net/http/http_util.cc (right): http://codereview.chromium.org/9296005/diff/3004/net/http/http_util.cc#newcode95 net/http/http_util.cc:95: bool *had_charset, Nit (from lint): bool* had_charset.
8 years, 10 months ago (2012-01-30 22:13:00 UTC) #6
abarth-chromium
Thanks!
8 years, 10 months ago (2012-01-30 22:15:52 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/9296005/10001
8 years, 10 months ago (2012-01-30 22:20:00 UTC) #8
commit-bot: I haz the power
Presubmit check for 9296005-10001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 10 months ago (2012-01-30 22:20:06 UTC) #9
abarth-chromium
@darin: I can haz OWNERS review for the webkit/glue changes? Thanks!
8 years, 10 months ago (2012-01-30 22:39:13 UTC) #10
darin (slow to review)
LGTM http://codereview.chromium.org/9296005/diff/10001/webkit/glue/weburlloader_impl.cc File webkit/glue/weburlloader_impl.cc (right): http://codereview.chromium.org/9296005/diff/10001/webkit/glue/weburlloader_impl.cc#newcode569 webkit/glue/weburlloader_impl.cc:569: net::HttpUtil::ParseContentType(content_type, &mime_type, &charset, did you consider making ParseContentType ...
8 years, 10 months ago (2012-01-30 22:53:38 UTC) #11
abarth-chromium
> did you consider making ParseContentType support NULL out-params, and then just > have the ...
8 years, 10 months ago (2012-01-30 22:57:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/abarth@chromium.org/9296005/10001
8 years, 10 months ago (2012-01-30 22:57:46 UTC) #13
commit-bot: I haz the power
8 years, 10 months ago (2012-01-31 01:00:52 UTC) #14
Change committed as 119790

Powered by Google App Engine
This is Rietveld 408576698