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

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

Issue 6749044: Remove async functionality from net::CookiePolicy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 8 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 5ce5ed744c59dd3c6d37f496d21443f2c509eb3b..dc2c66666d9fd0b74ab66d6cfed50013645bd675 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -128,10 +128,10 @@ void OffTheRecordProfileIOData::LazyInitializeInternal() const {
ApplyProfileParamsToContext(profile_params, extensions_request_context_);
profile_params.appcache_service->set_request_context(main_request_context_);
- scoped_refptr<ChromeCookiePolicy> cookie_policy =
- new ChromeCookiePolicy(profile_params.host_content_settings_map);
- main_request_context_->set_chrome_cookie_policy(cookie_policy);
- extensions_request_context_->set_chrome_cookie_policy(cookie_policy);
+ cookie_policy_.reset(
+ new ChromeCookiePolicy(profile_params.host_content_settings_map));
+ main_request_context_->set_cookie_policy(cookie_policy_.get());
+ extensions_request_context_->set_cookie_policy(cookie_policy_.get());
main_request_context_->set_net_log(lazy_params_->io_thread->net_log());
extensions_request_context_->set_net_log(lazy_params_->io_thread->net_log());
« 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