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

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

Issue 2684933009: [Cronet] Fix compilation and test errors for CookieStoreIOS. (Closed)
Patch Set: CookieStoreIOS::SystemCookiesAllowed should be true unless policy is 'Never'. Created 3 years, 10 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/crnet/crnet_environment.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/net/cookies/cookie_store_ios.mm
diff --git a/ios/net/cookies/cookie_store_ios.mm b/ios/net/cookies/cookie_store_ios.mm
index 68d11feb69cc6eb2d9b38b7ddbe2df073d786b31..8e9e9ea2c4ce0d4b66dd3589f138341006f6a679 100644
--- a/ios/net/cookies/cookie_store_ios.mm
+++ b/ios/net/cookies/cookie_store_ios.mm
@@ -591,8 +591,7 @@ void CookieStoreIOS::ClearSystemStore() {
bool CookieStoreIOS::SystemCookiesAllowed() {
DCHECK(thread_checker_.CalledOnValidThread());
- return [system_store_ cookieAcceptPolicy] ==
- NSHTTPCookieAcceptPolicyAlways;
+ return [system_store_ cookieAcceptPolicy] != NSHTTPCookieAcceptPolicyNever;
Eugene But (OOO till 7-30) 2017/02/10 00:17:01 This will return YES if 3rd party cookies are bloc
lilyhoughton 2017/02/10 16:41:18 What is the specific issue that this change fixes?
mef 2017/02/10 17:04:59 Done.
mef 2017/02/10 17:04:59 It broke Cronet cookie tests. I've entered crbug.
}
void CookieStoreIOS::WriteToCookieMonster(NSArray* system_cookies) {
« no previous file with comments | « ios/crnet/crnet_environment.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698