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

Unified Diff: components/cronet/ios/cronet_environment.mm

Issue 2617853002: [Cronet] Use CookieStoreIOS to sync cookies to system store. (Closed)
Patch Set: Address Andrei's comments. Created 3 years, 11 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 | « no previous file | components/cronet/ios/test/cronet_http_test.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cronet/ios/cronet_environment.mm
diff --git a/components/cronet/ios/cronet_environment.mm b/components/cronet/ios/cronet_environment.mm
index d122171656a92804c5c1fa05f26397e0b79d3468..6bab40ed1242f25e06d9b6d318e3b46388b007ab 100644
--- a/components/cronet/ios/cronet_environment.mm
+++ b/components/cronet/ios/cronet_environment.mm
@@ -42,6 +42,7 @@
#include "net/log/write_to_file_net_log_observer.h"
#include "net/proxy/proxy_service.h"
#include "net/socket/ssl_client_socket.h"
+#include "net/ssl/channel_id_service.h"
#include "net/url_request/http_user_agent_settings.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_builder.h"
@@ -305,6 +306,11 @@ void CronetEnvironment::InitializeOnNetworkThread() {
context_builder.set_host_resolver(std::move(mapped_host_resolver));
+ std::unique_ptr<net::CookieStore> cookie_store(
+ net::CookieStoreIOS::CreateCookieStore(
+ [NSHTTPCookieStorage sharedHTTPCookieStorage]));
+ context_builder.SetCookieAndChannelIdStores(std::move(cookie_store), nullptr);
+
std::unordered_set<std::string> quic_host_whitelist;
std::unique_ptr<net::HttpServerProperties> http_server_properties(
new net::HttpServerPropertiesImpl());
« no previous file with comments | « no previous file | components/cronet/ios/test/cronet_http_test.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698