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

Unified Diff: ios/crnet/crnet_environment.mm

Issue 1701063002: CookieStore: Remove reference counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threadsafe
Patch Set: merge Created 4 years, 9 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.h ('k') | ios/net/cookies/cookie_store_ios.h » ('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 da988756a7a93ded3dfd893f96d740a040ae6872..49bc1d6286366897d23d322be2fc6522538c94a3 100644
--- a/ios/crnet/crnet_environment.mm
+++ b/ios/crnet/crnet_environment.mm
@@ -38,6 +38,7 @@
#include "net/base/sdch_manager.h"
#include "net/cert/cert_verifier.h"
#include "net/cert_net/nss_ocsp.h"
+#include "net/cookies/cookie_store.h"
#include "net/http/http_auth_handler_factory.h"
#include "net/http/http_cache.h"
#include "net/http/http_server_properties_impl.h"
@@ -465,10 +466,9 @@ void CrNetEnvironment::InitializeOnNetworkThread() {
main_context_->set_http_transaction_factory(main_cache);
// Cookies
- scoped_refptr<net::CookieStore> cookie_store =
- net::CookieStoreIOS::CreateCookieStore(
+ cookie_store_ = net::CookieStoreIOS::CreateCookieStore(
[NSHTTPCookieStorage sharedHTTPCookieStorage]);
- main_context_->set_cookie_store(cookie_store.get());
+ main_context_->set_cookie_store(cookie_store_.get());
net::URLRequestJobFactoryImpl* job_factory =
new net::URLRequestJobFactoryImpl;
« no previous file with comments | « ios/crnet/crnet_environment.h ('k') | ios/net/cookies/cookie_store_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698