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

Unified Diff: net/url_request/url_request_test_util.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_http_job_unittest.cc ('k') | net/url_request/url_request_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_test_util.cc
diff --git a/net/url_request/url_request_test_util.cc b/net/url_request/url_request_test_util.cc
index 34e1f0bc715acc63e63cec630e4c2e646b3b34f9..c209b4b34a3941770b1d5ff167beb5810409a9ab 100644
--- a/net/url_request/url_request_test_util.cc
+++ b/net/url_request/url_request_test_util.cc
@@ -123,8 +123,10 @@ void TestURLRequestContext::Init() {
HttpCache::DefaultBackend::InMemory(0), false)));
}
// In-memory cookie store.
- if (!cookie_store())
- context_storage_.set_cookie_store(new CookieMonster(nullptr, nullptr));
+ if (!cookie_store()) {
+ context_storage_.set_cookie_store(
+ make_scoped_ptr(new CookieMonster(nullptr, nullptr)));
+ }
// In-memory Channel ID service.
if (!channel_id_service()) {
context_storage_.set_channel_id_service(make_scoped_ptr(
« no previous file with comments | « net/url_request/url_request_http_job_unittest.cc ('k') | net/url_request/url_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698