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

Issue 2670013002: net: remove GetNormalizedHeaders() function (Closed)

Created:
3 years, 10 months ago by tfarina
Modified:
3 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, yamaguchi+watch_chromium.org, oka+watch_chromium.org, jam, net-reviews_chromium.org, darin-cc_chromium.org, fukino+watch_chromium.org, mmenke
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

net: remove GetNormalizedHeaders() function It is only used by some logging and test functions. It should be safe to replace those callers with ConvertHeadersBackToHTTPResponse(). This cleans up Darin's TODO. BUG=488593 TEST=net_unittests R=eroman@chromium.org,rogerta@chromium.org,sky@chromium.org Review-Url: https://codereview.chromium.org/2670013002 Cr-Commit-Position: refs/heads/master@{#451455} Committed: https://chromium.googlesource.com/chromium/src/+/ff7fdbb297f5430b4fa34ececfb736743c4d9994

Patch Set 1 #

Total comments: 2

Patch Set 2 : review #

Patch Set 3 : fix UpdatesRequestResponseTimeOn304 #

Patch Set 4 : REBASE #

Patch Set 5 : revert unintended changes in http_response_headers_unittest.cc #

Patch Set 6 : ToSimpleString() #

Patch Set 7 : fix compilation - but problem still there #

Patch Set 8 : all HttpCache tests passes now #

Patch Set 9 : remove verification #

Total comments: 3

Patch Set 10 : add TODO #

Patch Set 11 : n #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -93 lines) Patch
M content/public/test/test_download_request_handler.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M google_apis/drive/base_requests.cc View 1 1 chunk +2 lines, -6 lines 0 comments Download
M google_apis/gaia/gaia_auth_fetcher.cc View 2 chunks +3 lines, -1 line 0 comments Download
M net/http/http_cache_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +31 lines, -6 lines 0 comments Download
M net/http/http_response_headers.h View 1 chunk +0 lines, -24 lines 0 comments Download
M net/http/http_response_headers.cc View 1 chunk +0 lines, -54 lines 0 comments Download

Messages

Total messages: 55 (36 generated)
eroman
Looks good once http_response_headers_unittest.cc is updated! https://codereview.chromium.org/2670013002/diff/1/google_apis/drive/base_requests.cc File google_apis/drive/base_requests.cc (right): https://codereview.chromium.org/2670013002/diff/1/google_apis/drive/base_requests.cc#newcode104 google_apis/drive/base_requests.cc:104: headers.assign(net::HttpUtil::ConvertHeadersBackToHTTPResponse( Please use ...
3 years, 10 months ago (2017-02-02 03:14:12 UTC) #3
tfarina
On 2017/02/02 03:14:12, eroman (slow) wrote: > Looks good once http_response_headers_unittest.cc is updated! > Eric, ...
3 years, 10 months ago (2017-02-13 10:30:27 UTC) #8
eroman
Sure, I will send a CL to update the http_response_headers_unittests
3 years, 10 months ago (2017-02-13 20:49:17 UTC) #11
tfarina
Hi Eric, could you take another look? https://codereview.chromium.org/2670013002/diff/160001/net/http/http_cache_unittest.cc File net/http/http_cache_unittest.cc (right): https://codereview.chromium.org/2670013002/diff/160001/net/http/http_cache_unittest.cc#newcode83 net/http/http_cache_unittest.cc:83: std::string ToSimpleString(const ...
3 years, 10 months ago (2017-02-14 22:13:18 UTC) #22
eroman
lgtm https://codereview.chromium.org/2670013002/diff/160001/net/http/http_cache_unittest.cc File net/http/http_cache_unittest.cc (right): https://codereview.chromium.org/2670013002/diff/160001/net/http/http_cache_unittest.cc#newcode83 net/http/http_cache_unittest.cc:83: std::string ToSimpleString(const scoped_refptr<HttpResponseHeaders>& parsed) { On 2017/02/14 22:13:18, ...
3 years, 10 months ago (2017-02-16 20:37:35 UTC) #25
tfarina
Adding owners: Scott -> content Roger -> google_apis https://codereview.chromium.org/2670013002/diff/160001/net/http/http_cache_unittest.cc File net/http/http_cache_unittest.cc (right): https://codereview.chromium.org/2670013002/diff/160001/net/http/http_cache_unittest.cc#newcode83 net/http/http_cache_unittest.cc:83: std::string ...
3 years, 10 months ago (2017-02-16 22:18:02 UTC) #28
Roger Tawa OOO till Jul 10th
Comments in the function being removed mention being careful about spacing and commas and such, ...
3 years, 10 months ago (2017-02-16 22:27:42 UTC) #30
eroman
The new approach that Thiago is using does not have those same limitations, so the ...
3 years, 10 months ago (2017-02-16 22:43:46 UTC) #31
eroman
(Small correction, the whitespace would be preserved too)
3 years, 10 months ago (2017-02-16 22:45:47 UTC) #32
Roger Tawa OOO till Jul 10th
Thanks for the explanation Eric. Still lgtm
3 years, 10 months ago (2017-02-17 14:55:29 UTC) #35
sky
LGTM
3 years, 10 months ago (2017-02-17 19:27:55 UTC) #36
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/2670013002/200001
3 years, 10 months ago (2017-02-17 20:50:56 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-17 22:54:50 UTC) #42
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/2670013002/200001
3 years, 10 months ago (2017-02-17 22:59:42 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-18 01:11:03 UTC) #46
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/2670013002/200001
3 years, 10 months ago (2017-02-18 01:20:37 UTC) #48
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-18 01:39:11 UTC) #50
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/2670013002/200001
3 years, 10 months ago (2017-02-18 10:53:18 UTC) #52
commit-bot: I haz the power
3 years, 10 months ago (2017-02-18 11:41:17 UTC) #55
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/ff7fdbb297f5430b4fa34ececfb7...

Powered by Google App Engine
This is Rietveld 408576698