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

Unified Diff: chrome/browser/profiles/profile_io_data.cc

Issue 1701063002: CookieStore: Remove reference counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threadsafe
Patch Set: Fix leak 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: chrome/browser/profiles/profile_io_data.cc
diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc
index 9e86ca9adb1a8e8c9ac1ea37b4657a8e031ea9d5..ef3a6be4cbaf10092c6bbe7e726e74a5bcb70f53 100644
--- a/chrome/browser/profiles/profile_io_data.cc
+++ b/chrome/browser/profiles/profile_io_data.cc
@@ -571,9 +571,9 @@ ProfileIOData::AppRequestContext::AppRequestContext() {
}
void ProfileIOData::AppRequestContext::SetCookieStore(
- net::CookieStore* cookie_store) {
- cookie_store_ = cookie_store;
- set_cookie_store(cookie_store);
+ scoped_ptr<net::CookieStore> cookie_store) {
+ cookie_store_ = std::move(cookie_store);
+ set_cookie_store(cookie_store_.get());
Randy Smith (Not in Mondays) 2016/02/29 22:37:45 Not part of this CL, but I think it's dangerously
mmenke 2016/02/29 23:00:29 I'd really like to move to a world where all URLRe
}
void ProfileIOData::AppRequestContext::SetHttpTransactionFactory(

Powered by Google App Engine
This is Rietveld 408576698