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

Unified Diff: net/url_request/url_request_http_job.cc

Issue 1615773005: Rename first-party-only cookies to same-site cookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests. Created 4 years, 11 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/extras/sqlite/sqlite_persistent_cookie_store.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_http_job.cc
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc
index 68d5ed9e898ec47c298f481c212359d1b5c3f654..5b84a56fa091e07ea71d8783218bd0fb9f482bd0 100644
--- a/net/url_request/url_request_http_job.cc
+++ b/net/url_request/url_request_http_job.cc
@@ -679,19 +679,19 @@ void URLRequestHttpJob::DoLoadCookies() {
CookieOptions options;
options.set_include_httponly();
- // TODO(mkwst): If first-party-only cookies aren't enabled, pretend the
- // request is first-party regardless, in order to include all cookies. Drop
- // this check once we decide whether or not we're shipping this feature:
+ // TODO(mkwst): If same-site cookies aren't enabled, pretend the request is
+ // same-site regardless, in order to include all cookies. Drop this check once
+ // we decide whether or not we're shipping this feature:
// https://crbug.com/459154
url::Origin requested_origin(request_->url());
if (!network_delegate() ||
!network_delegate()->AreExperimentalCookieFeaturesEnabled()) {
- options.set_include_first_party_only_cookies();
+ options.set_include_same_site();
} else if (requested_origin.IsSameOriginWith(
url::Origin(request_->first_party_for_cookies())) &&
(IsMethodSafe(request_->method()) ||
requested_origin.IsSameOriginWith(request_->initiator()))) {
- options.set_include_first_party_only_cookies();
+ options.set_include_same_site();
}
request_->context()->cookie_store()->GetCookiesWithOptionsAsync(
« no previous file with comments | « net/extras/sqlite/sqlite_persistent_cookie_store.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698