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

Unified Diff: ios/chrome/browser/safe_browsing/safe_browsing_service.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 | « ios/chrome/browser/net/cookie_util.mm ('k') | ios/crnet/crnet_environment.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/safe_browsing/safe_browsing_service.cc
diff --git a/ios/chrome/browser/safe_browsing/safe_browsing_service.cc b/ios/chrome/browser/safe_browsing/safe_browsing_service.cc
index 5372c4a14668b1023855e165b9bf44a6773dd72e..372449261c6baabb382e44bdcd5795cca0ed697a 100644
--- a/ios/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/ios/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -90,6 +90,8 @@ class SafeBrowsingURLRequestContextGetter
scoped_refptr<net::URLRequestContextGetter> system_context_getter_;
+ scoped_ptr<net::CookieStore> safe_browsing_cookie_store_;
+
scoped_ptr<net::URLRequestContext> safe_browsing_request_context_;
scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
@@ -126,9 +128,10 @@ SafeBrowsingURLRequestContextGetter::GetURLRequestContext() {
web::WebThread::GetBlockingPool()->GetSequencedTaskRunner(
web::WebThread::GetBlockingPool()->GetSequenceToken()),
false, nullptr));
-
- safe_browsing_request_context_->set_cookie_store(
+ safe_browsing_cookie_store_.reset(
new net::CookieMonster(sqlite_store.get(), nullptr));
+ safe_browsing_request_context_->set_cookie_store(
+ safe_browsing_cookie_store_.get());
}
return safe_browsing_request_context_.get();
« no previous file with comments | « ios/chrome/browser/net/cookie_util.mm ('k') | ios/crnet/crnet_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698