Clean up DataReductionProxyDelegate::OnResolveProxy
This change cleans up the logic in OnResolveProxy and its two helper functions (one of which is removed) so that it is clearer what logic is run only when a request is eligible for the data reduction proxy or only when the request will be made through the data reduction proxy. Duplicate checks are removed or the later ones turned into DCHECKs to clarify assumptions. Bug: 721403 Change-Id: I271a553e0c1406921c6a2a23ab21241ba3095df5 Reviewed-on: https://chromium-review.googlesource.com/887650 Commit-Queue: Reilly Grant <reillyg@chromium.org> Reviewed-by:Tarun Bansal <tbansal@chromium.org> Cr-Commit-Position: refs/heads/master@{#532951}
Showing
Please register or sign in to comment