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

Unified Diff: ios/web/shell/shell_url_request_context_getter.mm

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/net/cookies/cookie_store_ios_unittest.mm ('k') | net/cookies/cookie_monster.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/shell/shell_url_request_context_getter.mm
diff --git a/ios/web/shell/shell_url_request_context_getter.mm b/ios/web/shell/shell_url_request_context_getter.mm
index 6fc3e7a77621d49cf75d82e70029fd2c9fbd3248..02ad8d7432ed21e7769fb8bfc9e162b71cb912bb 100644
--- a/ios/web/shell/shell_url_request_context_getter.mm
+++ b/ios/web/shell/shell_url_request_context_getter.mm
@@ -77,10 +77,10 @@ net::URLRequestContext* ShellURLRequestContextGetter::GetURLRequestContext() {
web::WebThread::GetBlockingPool()->GetSequencedTaskRunner(
web::WebThread::GetBlockingPool()->GetSequenceToken()),
true, nullptr);
- scoped_refptr<net::CookieStoreIOS> cookie_store =
- new net::CookieStoreIOS(persistent_store.get());
- storage_->set_cookie_store(cookie_store.get());
+ scoped_ptr<net::CookieStoreIOS> cookie_store(
+ new net::CookieStoreIOS(persistent_store.get()));
net::CookieStoreIOS::SwitchSynchronizedStore(nullptr, cookie_store.get());
+ storage_->set_cookie_store(std::move(cookie_store));
std::string user_agent = web::GetWebClient()->GetUserAgent(false);
storage_->set_http_user_agent_settings(make_scoped_ptr(
« no previous file with comments | « ios/net/cookies/cookie_store_ios_unittest.mm ('k') | net/cookies/cookie_monster.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698