commit | 361ea625a796df11fb159a837a8cd3d7265873d7 | [log] [tgz] |
---|---|---|
author | David Van Cleve <davidvc@chromium.org> | Tue Sep 24 17:31:38 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Sep 24 17:31:38 2019 |
tree | d7dad69a4cb3b79b5ca0b785567598233d894abd | |
parent | d99ffed053960bdbbb1aba6d0ec6118863ae0fdc [diff] |
Removes the --no-referrers command line switch This is one of a series of three CLs adding more uniformity to referrer controls' implementation. The switch's functionality remains accessible via disabling the enable_referrers pref. The changes in this CL comprise: 1. Removing the switch 2. Removing the previous calls directly checking the switch, rather than the enable_referrers pref. Happily, these checks of the switch were both redundant with the later check of enable_referrers performed in NetworkDelegate::NotifyBeforeURLRequest. 3. A nominal amount of refactoring of some dead/nearly-dead referrer-related code: - network::ComputeReferrer removed from loader_util.cc (after removing the --no-referrers switch, this method now duplicates GURL::GetAsReferrer). - content::Referrer::SetReferrerForRequest removed (it had no callers). R=gab, falken Bug: 1004486 Change-Id: I00bc503d0954700565047a188bbb9842c4d4bc9e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1808144 Commit-Queue: David Van Cleve <davidvc@chromium.org> Reviewed-by: Gabriel Charette <gab@chromium.org> Reviewed-by: Matt Falkenhagen <falken@chromium.org> Cr-Commit-Position: refs/heads/master@{#699403}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .