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

Unified Diff: net/url_request/url_request_context_storage.cc

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 | « net/url_request/url_request_context_storage.h ('k') | net/url_request/url_request_http_job_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context_storage.cc
diff --git a/net/url_request/url_request_context_storage.cc b/net/url_request/url_request_context_storage.cc
index 29251077dd1394f8705439d0703621582869a419..ae073899bcee02b95d48d4a705783391e60fa276 100644
--- a/net/url_request/url_request_context_storage.cc
+++ b/net/url_request/url_request_context_storage.cc
@@ -93,9 +93,10 @@ void URLRequestContextStorage::set_http_server_properties(
context_->set_http_server_properties(http_server_properties_->GetWeakPtr());
}
-void URLRequestContextStorage::set_cookie_store(CookieStore* cookie_store) {
- context_->set_cookie_store(cookie_store);
- cookie_store_ = cookie_store;
+void URLRequestContextStorage::set_cookie_store(
+ scoped_ptr<CookieStore> cookie_store) {
+ context_->set_cookie_store(cookie_store.get());
+ cookie_store_ = std::move(cookie_store);
}
void URLRequestContextStorage::set_transport_security_state(
« no previous file with comments | « net/url_request/url_request_context_storage.h ('k') | net/url_request/url_request_http_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698