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

Issue 2261103002: Use modified URLRequest::Read() and delegate methods in components/ (Closed)

Created:
4 years, 4 months ago by maksims (do not use this acc)
Modified:
4 years, 3 months ago
CC:
chromium-reviews, rsleevi+watch_chromium.org, certificate-transparency-chrome_googlegroups.com, cbentzel+watch_chromium.org, Eran Messeri
Base URL:
https://chromium.googlesource.com/chromium/src.git@URLRequestRead
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use modified URLRequest::Read() and delegate methods in components/ This CL modifies clients that use URLRequest::Read() method or implement net::Delegate/net::NetworkDelegate methods and makes them to use returned networking errors instead, which are returned in term of int. Old implementation of URLRequest::Read() used to set its status inside the URLRequest object itself and clients used to check the status by calling request->status(). The main CL that changes URLRequest::Read and delegate methods is here - https://codereview.chromium.org/2262653003 BUG=423484 Committed: https://crrev.com/1faf924e0dc99a797084918fc04bc6a688e2cd4c Cr-Commit-Position: refs/heads/master@{#419413}

Patch Set 1 : componets #

Total comments: 16

Patch Set 2 : remove domain_reliability from thic cl #

Patch Set 3 : comments #

Patch Set 4 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -108 lines) Patch
M components/certificate_transparency/log_proof_fetcher.cc View 1 2 4 chunks +19 lines, -28 lines 0 comments Download
M components/cronet/android/cronet_url_request_adapter.h View 2 chunks +3 lines, -4 lines 0 comments Download
M components/cronet/android/cronet_url_request_adapter.cc View 1 2 3 7 chunks +25 lines, -19 lines 0 comments Download
M components/cronet/android/cronet_url_request_context_adapter.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M components/cronet/android/url_request_adapter.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M components/cronet/android/url_request_adapter.cc View 1 2 3 chunks +23 lines, -17 lines 0 comments Download
M components/cronet/android/url_request_context_adapter.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc View 3 chunks +3 lines, -6 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.h View 1 chunk +3 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_interceptor_unittest.cc View 7 chunks +7 lines, -11 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h View 1 chunk +2 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 6 chunks +16 lines, -8 lines 0 comments Download

Messages

Total messages: 86 (72 generated)
maksims (do not use this acc)
PTAL rsleevi@: components/certificate_transparency/log_proof_fetcher.cc mmenke@: components/cronet/android/* bengr@: components/data_reduction_proxy/core/* davidben@: components/domain_reliability/*
4 years, 3 months ago (2016-09-06 14:31:00 UTC) #53
maksims (do not use this acc)
PTAL rsleevi@: components/certificate_transparency/log_proof_fetcher.cc mmenke@: components/cronet/android/* bengr@: components/data_reduction_proxy/core/* davidben@: components/domain_reliability/*
4 years, 3 months ago (2016-09-06 14:33:06 UTC) #55
Ryan Sleevi
Please update the commit description to better reflect what this code does. A good primer ...
4 years, 3 months ago (2016-09-06 16:15:34 UTC) #56
maksims (do not use this acc)
On 2016/09/06 16:15:34, Ryan Sleevi (slow) wrote: > Please update the commit description to better ...
4 years, 3 months ago (2016-09-06 16:35:25 UTC) #58
davidben
https://codereview.chromium.org/2261103002/diff/200001/components/domain_reliability/monitor.cc File components/domain_reliability/monitor.cc (right): https://codereview.chromium.org/2261103002/diff/200001/components/domain_reliability/monitor.cc#newcode173 components/domain_reliability/monitor.cc:173: // TODO(maksims): Make this take net_error. It does not ...
4 years, 3 months ago (2016-09-06 17:07:28 UTC) #59
mmenke
Cronet LGTM https://codereview.chromium.org/2261103002/diff/200001/components/cronet/android/cronet_url_request_adapter.cc File components/cronet/android/cronet_url_request_adapter.cc (right): https://codereview.chromium.org/2261103002/diff/200001/components/cronet/android/cronet_url_request_adapter.cc#newcode274 components/cronet/android/cronet_url_request_adapter.cc:274: ReportError(request, bytes_read); Early return is generally preferred, ...
4 years, 3 months ago (2016-09-06 17:57:58 UTC) #60
Ryan Sleevi
lgtm https://codereview.chromium.org/2261103002/diff/200001/components/certificate_transparency/log_proof_fetcher.cc File components/certificate_transparency/log_proof_fetcher.cc (right): https://codereview.chromium.org/2261103002/diff/200001/components/certificate_transparency/log_proof_fetcher.cc#newcode149 components/certificate_transparency/log_proof_fetcher.cc:149: // Check for an error condition. You can ...
4 years, 3 months ago (2016-09-07 18:48:08 UTC) #61
bengr
components/data_reduction_proxy/* lgtm
4 years, 3 months ago (2016-09-08 00:28:23 UTC) #62
maksims (do not use this acc)
https://codereview.chromium.org/2261103002/diff/200001/components/cronet/android/cronet_url_request_adapter.cc File components/cronet/android/cronet_url_request_adapter.cc (right): https://codereview.chromium.org/2261103002/diff/200001/components/cronet/android/cronet_url_request_adapter.cc#newcode274 components/cronet/android/cronet_url_request_adapter.cc:274: ReportError(request, bytes_read); On 2016/09/06 17:57:58, mmenke wrote: > Early ...
4 years, 3 months ago (2016-09-12 12:11:54 UTC) #73
maksims (do not use this acc)
mmenke@, can I commit this or better wait? what do you think?
4 years, 3 months ago (2016-09-12 12:12:48 UTC) #74
mmenke
On 2016/09/12 12:12:48, maksims wrote: > mmenke@, can I commit this or better wait? what ...
4 years, 3 months ago (2016-09-12 15:33:30 UTC) #75
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/2261103002/260001
4 years, 3 months ago (2016-09-19 04:22:16 UTC) #82
commit-bot: I haz the power
Committed patchset #4 (id:260001)
4 years, 3 months ago (2016-09-19 04:54:19 UTC) #84
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 04:56:31 UTC) #86
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1faf924e0dc99a797084918fc04bc6a688e2cd4c
Cr-Commit-Position: refs/heads/master@{#419413}

Powered by Google App Engine
This is Rietveld 408576698