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

Unified Diff: net/url_request/url_fetcher_core.cc

Issue 268703003: Remove Referrer Policy from URLFetcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove test override for SetReferrerPolicy Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/url_request/url_fetcher_core.h ('k') | net/url_request/url_fetcher_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_fetcher_core.cc
diff --git a/net/url_request/url_fetcher_core.cc b/net/url_request/url_fetcher_core.cc
index eb45ecf52e3755789f2d1fd2a2de27646d8cdc71..f87dd134a82fef1d17de86101ba021b7774530fa 100644
--- a/net/url_request/url_fetcher_core.cc
+++ b/net/url_request/url_fetcher_core.cc
@@ -82,8 +82,6 @@ URLFetcherCore::URLFetcherCore(URLFetcher* fetcher,
upload_content_set_(false),
upload_range_offset_(0),
upload_range_length_(0),
- referrer_policy_(
- URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE),
is_chunked_upload_(false),
was_cancelled_(false),
stop_on_redirect_(false),
@@ -206,11 +204,6 @@ void URLFetcherCore::SetReferrer(const std::string& referrer) {
referrer_ = referrer;
}
-void URLFetcherCore::SetReferrerPolicy(
- URLRequest::ReferrerPolicy referrer_policy) {
- referrer_policy_ = referrer_policy;
-}
-
void URLFetcherCore::SetExtraRequestHeaders(
const std::string& extra_request_headers) {
extra_request_headers_.Clear();
@@ -517,7 +510,8 @@ void URLFetcherCore::StartURLRequest() {
request_->EnableChunkedUpload();
request_->SetLoadFlags(flags);
request_->SetReferrer(referrer_);
- request_->set_referrer_policy(referrer_policy_);
+ request_->set_referrer_policy(
+ URLRequest::CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE);
mmenke 2014/05/01 21:37:26 Is this needed? This is already the default (see
cbentzel 2014/05/01 22:15:57 Done.
request_->set_first_party_for_cookies(first_party_for_cookies_.is_empty() ?
original_url_ : first_party_for_cookies_);
if (url_request_data_key_ && !url_request_create_data_callback_.is_null()) {
« no previous file with comments | « net/url_request/url_fetcher_core.h ('k') | net/url_request/url_fetcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698