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

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

Issue 2882063002: Add a SetCanonicalCookie method for CookieMonster. (Closed)
Patch Set: Fix iOS behavior for secure cookies. Created 3 years, 6 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/cookie_store_ios_persistent.mm
diff --git a/ios/net/cookies/cookie_store_ios_persistent.mm b/ios/net/cookies/cookie_store_ios_persistent.mm
index a0ed1ada98b4f01e6c83c7d013a8772fae8d5c29..0f95de0d3c00f9293e6c588254267724cd07e4be 100644
--- a/ios/net/cookies/cookie_store_ios_persistent.mm
+++ b/ios/net/cookies/cookie_store_ios_persistent.mm
@@ -57,6 +57,17 @@ void CookieStoreIOSPersistent::SetCookieWithDetailsAsync(
WrapSetCallback(callback));
}
+void CookieStoreIOSPersistent::SetCanonicalCookieAsync(
+ const CanonicalCookie& cookie,
+ bool secure_source,
+ bool modify_http_only,
+ const SetCookiesCallback& callback) {
+ DCHECK(thread_checker().CalledOnValidThread());
+
+ cookie_monster()->SetCanonicalCookieAsync(
+ cookie, secure_source, modify_http_only, WrapSetCallback(callback));
+}
+
void CookieStoreIOSPersistent::GetCookiesWithOptionsAsync(
const GURL& url,
const net::CookieOptions& options,

Powered by Google App Engine
This is Rietveld 408576698