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

Unified Diff: chrome/browser/profiles/off_the_record_profile_io_data.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
Index: chrome/browser/profiles/off_the_record_profile_io_data.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.cc b/chrome/browser/profiles/off_the_record_profile_io_data.cc
index d4f59b6f6bb9bb88ab23643bed043060cac1a78a..89b57acf8b5f24badf53aca31b9668a07449ac47 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -238,12 +238,10 @@ void OffTheRecordProfileIOData::InitializeInternal(
main_context->set_channel_id_service(channel_id_service);
using content::CookieStoreConfig;
- main_context->set_cookie_store(
- CreateCookieStore(CookieStoreConfig(
- base::FilePath(),
- CookieStoreConfig::EPHEMERAL_SESSION_COOKIES,
- NULL,
- profile_params->cookie_monster_delegate.get())));
+ main_cookie_store_ = CreateCookieStore(CookieStoreConfig(
+ base::FilePath(), CookieStoreConfig::EPHEMERAL_SESSION_COOKIES, NULL,
+ profile_params->cookie_monster_delegate.get()));
+ main_context->set_cookie_store(main_cookie_store_.get());
http_network_session_ = CreateHttpNetworkSession(*profile_params);
main_http_factory_ = CreateMainHttpFactory(
@@ -298,9 +296,8 @@ void OffTheRecordProfileIOData::
content::CookieStoreConfig cookie_config;
// Enable cookies for chrome-extension URLs.
cookie_config.cookieable_schemes.push_back(extensions::kExtensionScheme);
- net::CookieStore* extensions_cookie_store =
- content::CreateCookieStore(cookie_config);
- extensions_context->set_cookie_store(extensions_cookie_store);
+ extensions_cookie_store_ = content::CreateCookieStore(cookie_config);
+ extensions_context->set_cookie_store(extensions_cookie_store_.get());
scoped_ptr<net::URLRequestJobFactoryImpl> extensions_job_factory(
new net::URLRequestJobFactoryImpl());
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_io_data.h ('k') | chrome/browser/profiles/profile_impl_io_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698