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

Issue 314173002: Bypass data reduction proxy if no handler is found for a 407 error. (Closed)

Created:
6 years, 6 months ago by Not at Google. Contact bengr
Modified:
6 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, asvitkine+watch_chromium.org, jar+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@benpatch
Visibility:
Public.

Description

Bypass data reduction proxy if no handler is found for a 407 error. Bypass data reduction proxy if we get a 407 without a Proxy-Authenticate header. This should occur only when the headers have been stripped by middle servers. BUG=371523

Patch Set 1 #

Total comments: 6

Patch Set 2 : Responded to comments by bengr. #

Total comments: 2

Patch Set 3 : Added unit tests. #

Total comments: 2

Patch Set 4 : Added TODO as suggested by bengr. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M components/data_reduction_proxy/common/data_reduction_proxy_headers.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/common/data_reduction_proxy_headers_unittest.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M net/proxy/proxy_service.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Not at Google. Contact bengr
6 years, 6 months ago (2014-06-05 17:09:04 UTC) #1
bengr
On 2014/06/05 17:09:04, kundaji wrote: The description isn't quite right. How about: Bypass data reduction ...
6 years, 6 months ago (2014-06-05 17:25:46 UTC) #2
bengr
https://codereview.chromium.org/314173002/diff/1/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc File components/data_reduction_proxy/common/data_reduction_proxy_headers.cc (right): https://codereview.chromium.org/314173002/diff/1/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc#newcode126 components/data_reduction_proxy/common/data_reduction_proxy_headers.cc:126: && !headers->EnumerateHeader(NULL, "Proxy-Authenticate", &dummy)) { Use headers->HasHeader("Proxy-Authenticate"). https://codereview.chromium.org/314173002/diff/1/net/proxy/proxy_service.h File ...
6 years, 6 months ago (2014-06-05 17:26:24 UTC) #3
Not at Google. Contact bengr
https://codereview.chromium.org/314173002/diff/1/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc File components/data_reduction_proxy/common/data_reduction_proxy_headers.cc (right): https://codereview.chromium.org/314173002/diff/1/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc#newcode126 components/data_reduction_proxy/common/data_reduction_proxy_headers.cc:126: && !headers->EnumerateHeader(NULL, "Proxy-Authenticate", &dummy)) { On 2014/06/05 17:26:24, bengr1 ...
6 years, 6 months ago (2014-06-05 17:51:53 UTC) #4
bengr
Please add tests. Add asvitkine@ as a reviewer for the histogram and mef@ as a ...
6 years, 6 months ago (2014-06-05 18:02:21 UTC) #5
Alexei Svitkine (slow)
histograms lgtm
6 years, 6 months ago (2014-06-05 19:51:54 UTC) #6
Not at Google. Contact bengr
bengr: components/data_reduction_proxy/common/* asvitkine: tools/metrics/histograms* mef: net/*
6 years, 6 months ago (2014-06-05 20:20:34 UTC) #7
Not at Google. Contact bengr
https://codereview.chromium.org/314173002/diff/20001/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc File components/data_reduction_proxy/common/data_reduction_proxy_headers.cc (right): https://codereview.chromium.org/314173002/diff/20001/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc#newcode125 components/data_reduction_proxy/common/data_reduction_proxy_headers.cc:125: && !headers->HasHeader("Proxy-Authenticate")) { On 2014/06/05 18:02:21, bengr1 wrote: > ...
6 years, 6 months ago (2014-06-05 20:21:23 UTC) #8
mef
net/* lgtm
6 years, 6 months ago (2014-06-05 20:23:27 UTC) #9
bengr
lgtm, with nit. https://codereview.chromium.org/314173002/diff/40001/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc File components/data_reduction_proxy/common/data_reduction_proxy_headers.cc (right): https://codereview.chromium.org/314173002/diff/40001/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc#newcode124 components/data_reduction_proxy/common/data_reduction_proxy_headers.cc:124: if (headers->response_code() == net::HTTP_PROXY_AUTHENTICATION_REQUIRED && Add ...
6 years, 6 months ago (2014-06-05 20:37:22 UTC) #10
Not at Google. Contact bengr
https://codereview.chromium.org/314173002/diff/40001/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc File components/data_reduction_proxy/common/data_reduction_proxy_headers.cc (right): https://codereview.chromium.org/314173002/diff/40001/components/data_reduction_proxy/common/data_reduction_proxy_headers.cc#newcode124 components/data_reduction_proxy/common/data_reduction_proxy_headers.cc:124: if (headers->response_code() == net::HTTP_PROXY_AUTHENTICATION_REQUIRED && On 2014/06/05 20:37:22, bengr1 ...
6 years, 6 months ago (2014-06-05 20:43:43 UTC) #11
bengr
The CQ bit was checked by bengr@chromium.org
6 years, 6 months ago (2014-06-19 15:11:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kundaji@chromium.org/314173002/60001
6 years, 6 months ago (2014-06-19 15:13:17 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-19 16:14:38 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/18978)
6 years, 6 months ago (2014-06-19 16:14:39 UTC) #15
bengr
On 2014/06/19 16:14:39, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 6 months ago (2014-06-19 21:58:52 UTC) #16
Not at Google. Contact bengr
6 years, 6 months ago (2014-06-19 22:10:51 UTC) #17
Message was sent while issue was closed.
On 2014/06/19 21:58:52, bengr1 wrote:
> On 2014/06/19 16:14:39, I haz the power (commit-bot) wrote:
> > Try jobs failed on following builders:
> >   mac_gpu on tryserver.chromium.gpu
> >
>
(http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/18978)
> 
> Please close this issue if it is out of date.

Done.

Powered by Google App Engine
This is Rietveld 408576698