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

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: Small fix Created 4 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
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 399bc47caabc8ac47252e5910948fcb4a94917ac..db316009f05f3a4f3d3c221639c55d07e16dc95c 100644
--- a/net/url_request/url_request_context_storage.cc
+++ b/net/url_request/url_request_context_storage.cc
@@ -87,9 +87,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(

Powered by Google App Engine
This is Rietveld 408576698