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

Issue 2904643002: Remove some naked |new| statements in favor of MakeUnique. (Closed)

Created:
3 years, 7 months ago by Bence
Modified:
3 years, 7 months ago
Reviewers:
mgersh, xunjieli
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove some naked |new| statements in favor of MakeUnique. * Call MakeUnique instead of new; * use auto type where it does not hurt readability; * use unique_ptr instead of raw pointers in HttpCacheTest; * do not unnecessarily upcast HttpNetworkTransaction to HttpTransaction in HttpNetworkTransactionTests; * add/remove includes as needed. Review-Url: https://codereview.chromium.org/2904643002 Cr-Commit-Position: refs/heads/master@{#474633} Committed: https://chromium.googlesource.com/chromium/src/+/87dcefcd9544094a19def2688f7bcde92524560d

Patch Set 1 #

Patch Set 2 : Revert changes in one test where it caused a crash. #

Total comments: 4

Patch Set 3 : Re: #11. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -399 lines) Patch
M net/http/bidirectional_stream.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_cache_unittest.cc View 76 chunks +106 lines, -145 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 91 chunks +169 lines, -177 lines 0 comments Download
M net/http/http_stream_factory_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 6 chunks +9 lines, -8 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller_unittest.cc View 4 chunks +5 lines, -7 lines 0 comments Download
M net/http/http_stream_factory_impl_request_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_unittest.cc View 20 chunks +22 lines, -35 lines 0 comments Download
M net/url_request/url_request_http_job_unittest.cc View 13 chunks +15 lines, -19 lines 0 comments Download

Messages

Total messages: 24 (18 generated)
Bence
mgersh: PTAL. Thank you. See https://groups.google.com/a/chromium.org/forum/#!msg/chromium-dev/evQtLFgfmyM/YzUV12AZAwAJ for context.
3 years, 7 months ago (2017-05-24 11:30:38 UTC) #10
mgersh
lgtm (with a note about your include-fixing tool doing something weird) https://codereview.chromium.org/2904643002/diff/20001/net/http/http_network_transaction.cc File net/http/http_network_transaction.cc (right): ...
3 years, 7 months ago (2017-05-24 15:26:40 UTC) #11
Bence
xunjieli: PTAL, thanks. mgersh: thank you for reviewing! https://codereview.chromium.org/2904643002/diff/20001/net/http/http_network_transaction.cc File net/http/http_network_transaction.cc (right): https://codereview.chromium.org/2904643002/diff/20001/net/http/http_network_transaction.cc#newcode8 net/http/http_network_transaction.cc:8: #include ...
3 years, 7 months ago (2017-05-24 15:44:57 UTC) #15
xunjieli
lgtm
3 years, 7 months ago (2017-05-24 15:47:55 UTC) #16
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/2904643002/40001
3 years, 7 months ago (2017-05-25 12:43:33 UTC) #21
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 12:48:14 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/87dcefcd9544094a19def2688f7b...

Powered by Google App Engine
This is Rietveld 408576698