• John Abd-El-Malek's avatar
    Fix safe search policy not being applied on redirects. · 053bcc17
    John Abd-El-Malek authored
    This is another regression from r579953. The problem is that NetworkDelegate::OnBeforeURLRequest is called on the initial request and every redirect, while URLLoaderThrottle::WillStartRequest is only called on the original request and not redirects.
    
    This cl doesn't fix the network service path, as we don't have a way to change the URL in a throttle on a redirect. It's meant to be as minimal to merge. Follow-up cls will add a test and fix this for network service path.
    
    Bug: 899268
    Change-Id: I1948ee74a57e6a36cfda165abd924900b4b8b1c4
    Reviewed-on: https://chromium-review.googlesource.com/c/1338567Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
    Commit-Queue: John Abd-El-Malek <jam@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#608599}
    053bcc17
chrome_network_delegate.h 7.49 KB