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

Unified Diff: chrome/browser/browsing_data/cookies_tree_model.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: Missed a few. 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
Index: chrome/browser/browsing_data/cookies_tree_model.cc
diff --git a/chrome/browser/browsing_data/cookies_tree_model.cc b/chrome/browser/browsing_data/cookies_tree_model.cc
index 57e001def8fd8bee1a5573c8493528ca81c5d8e1..1800b1746119b2a2d15fa3998f69e9a44189c647 100644
--- a/chrome/browser/browsing_data/cookies_tree_model.cc
+++ b/chrome/browser/browsing_data/cookies_tree_model.cc
@@ -992,12 +992,12 @@ CookiesTreeModel::~CookiesTreeModel() {
// static
int CookiesTreeModel::GetSendForMessageID(const net::CanonicalCookie& cookie) {
if (cookie.IsSecure()) {
- if (cookie.IsFirstPartyOnly())
- return IDS_COOKIES_COOKIE_SENDFOR_SECURE_FIRSTPARTY;
+ if (cookie.IsSameSite())
+ return IDS_COOKIES_COOKIE_SENDFOR_SECURE_SAMESITE;
return IDS_COOKIES_COOKIE_SENDFOR_SECURE;
}
- if (cookie.IsFirstPartyOnly())
- return IDS_COOKIES_COOKIE_SENDFOR_FIRSTPARTY;
+ if (cookie.IsSameSite())
+ return IDS_COOKIES_COOKIE_SENDFOR_SAMESITE;
return IDS_COOKIES_COOKIE_SENDFOR_ANY;
}

Powered by Google App Engine
This is Rietveld 408576698