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

Unified Diff: ios/crnet/crnet_environment.mm

Issue 2684933009: [Cronet] Fix compilation and test errors for CookieStoreIOS. (Closed)
Patch Set: Address Eugene's suggestions. 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 | « components/cronet/ios/cronet_environment.mm ('k') | ios/net/cookies/cookie_store_ios.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/crnet/crnet_environment.mm
diff --git a/ios/crnet/crnet_environment.mm b/ios/crnet/crnet_environment.mm
index ef674a1d81b1cabf3a154905eb9bac2ae83f49d2..36e859fc5a5266bd1bfb7d66d884dc7fe2edfcb3 100644
--- a/ios/crnet/crnet_environment.mm
+++ b/ios/crnet/crnet_environment.mm
@@ -475,7 +475,9 @@ void CrNetEnvironment::InitializeOnNetworkThread() {
main_context_->set_http_transaction_factory(main_cache);
// Cookies
- cookie_store_ = base::MakeUnique<CookieStoreIOS>(
+ [[NSHTTPCookieStorage sharedHTTPCookieStorage]
+ setCookieAcceptPolicy:NSHTTPCookieAcceptPolicyAlways];
+ cookie_store_ = base::MakeUnique<net::CookieStoreIOS>(
[NSHTTPCookieStorage sharedHTTPCookieStorage]);
main_context_->set_cookie_store(cookie_store_.get());
« no previous file with comments | « components/cronet/ios/cronet_environment.mm ('k') | ios/net/cookies/cookie_store_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698