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

Issue 2664983002: Fixing redirect DataReductionProxyNewtorkDelegate behavior (Closed)

Created:
3 years, 10 months ago by RyanSturm
Modified:
3 years, 10 months ago
Reviewers:
tbansal1
CC:
chromium-reviews, tbansal+watch-data-reduction-proxy_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixing redirect DataReductionProxyNewtorkDelegate behavior The current behavior to clear out DataReductionProxyData from URLRequest's UserData was based on OnBeforeSendHeaders being called for the request after a redirect. However, when the resource is cached, the DataReductionProxyData won't be cleared. This CL aims to fix this by moving the code that clears the DRPData to OnBeforeRedirect, which is called for every redirect response. BUG=686367 Review-Url: https://codereview.chromium.org/2664983002 Cr-Commit-Position: refs/heads/master@{#447125} Committed: https://chromium.googlesource.com/chromium/src/+/ee1900abec9b62a0657726f5f238ed7123df7d97

Patch Set 1 #

Patch Set 2 : small test change #

Total comments: 4

Patch Set 3 : added back the original clear of data #

Patch Set 4 : typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -42 lines) Patch
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h View 1 chunk +5 lines, -0 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc View 1 2 2 chunks +9 lines, -1 line 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate_unittest.cc View 1 21 chunks +50 lines, -40 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 22 (17 generated)
RyanSturm
tbansal: PTAL
3 years, 10 months ago (2017-01-30 22:04:04 UTC) #3
tbansal1
lgtm % nits. https://codereview.chromium.org/2664983002/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc (left): https://codereview.chromium.org/2664983002/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#oldcode208 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:208: // If this is after a ...
3 years, 10 months ago (2017-01-30 22:23:19 UTC) #7
RyanSturm
https://codereview.chromium.org/2664983002/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc File components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc (left): https://codereview.chromium.org/2664983002/diff/20001/components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc#oldcode208 components/data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc:208: // If this is after a redirect, reset |request|'s ...
3 years, 10 months ago (2017-01-30 22:59:03 UTC) #12
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/2664983002/60001
3 years, 10 months ago (2017-01-31 00:18:05 UTC) #19
commit-bot: I haz the power
3 years, 10 months ago (2017-01-31 00:22:48 UTC) #22
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/ee1900abec9b62a0657726f5f238...

Powered by Google App Engine
This is Rietveld 408576698