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

Unified Diff: ios/net/cookies/system_cookie_util.mm

Issue 1773133002: SameSite: Implement 'Strict'/'Lax' attribute parsing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mmenke@ Created 4 years, 9 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 | « ios/net/cookies/cookie_store_ios_unittest.mm ('k') | ios/net/cookies/system_cookie_util_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/net/cookies/system_cookie_util.mm
diff --git a/ios/net/cookies/system_cookie_util.mm b/ios/net/cookies/system_cookie_util.mm
index 444a54538608abcbaefb9d2cc7183f0a27b64048..9c371dca41782df8e9a2c98f6f8c79cdd1e6671a 100644
--- a/ios/net/cookies/system_cookie_util.mm
+++ b/ios/net/cookies/system_cookie_util.mm
@@ -72,8 +72,10 @@ net::CanonicalCookie CanonicalCookieFromSystemCookie(
base::SysNSStringToUTF8([cookie domain]),
base::SysNSStringToUTF8([cookie path]), ceation_time,
base::Time::FromDoubleT([[cookie expiresDate] timeIntervalSince1970]),
- base::Time(), [cookie isSecure], [cookie isHTTPOnly], false,
- net::COOKIE_PRIORITY_DEFAULT);
+ base::Time(), [cookie isSecure], [cookie isHTTPOnly],
+ // TODO(mkwst): When iOS begins to support 'SameSite' and 'Priority'
+ // attributes, pass them through here.
+ net::CookieSameSite::DEFAULT_MODE, net::COOKIE_PRIORITY_DEFAULT);
}
// Converts net::CanonicalCookie to NSHTTPCookie.
« no previous file with comments | « ios/net/cookies/cookie_store_ios_unittest.mm ('k') | ios/net/cookies/system_cookie_util_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698