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

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

Issue 2159373002: net: make CanonicalCookie's constructor private (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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: 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 9c371dca41782df8e9a2c98f6f8c79cdd1e6671a..0a9c67a4d13972bf4b6fc71636967029e111eb0c 100644
--- a/ios/net/cookies/system_cookie_util.mm
+++ b/ios/net/cookies/system_cookie_util.mm
@@ -66,16 +66,16 @@ void ReportUMACookieLoss(CookieLossType loss, CookieEvent event) {
net::CanonicalCookie CanonicalCookieFromSystemCookie(
NSHTTPCookie* cookie,
const base::Time& ceation_time) {
- return net::CanonicalCookie(
- GURL(), base::SysNSStringToUTF8([cookie name]),
+ return *net::CanonicalCookie::Create(
+ GURL("http://example.com"), base::SysNSStringToUTF8([cookie name]),
mmenke 2016/07/20 20:50:11 I think this one is the issue. Switch it to using
tfarina 2016/07/20 21:58:47 Done.
base::SysNSStringToUTF8([cookie value]),
base::SysNSStringToUTF8([cookie domain]),
base::SysNSStringToUTF8([cookie path]), ceation_time,
base::Time::FromDoubleT([[cookie expiresDate] timeIntervalSince1970]),
- base::Time(), [cookie isSecure], [cookie isHTTPOnly],
+ [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);
+ net::CookieSameSite::DEFAULT_MODE, false, net::COOKIE_PRIORITY_DEFAULT);
}
// Converts net::CanonicalCookie to NSHTTPCookie.

Powered by Google App Engine
This is Rietveld 408576698