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; |