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

Unified Diff: chrome/browser/profiles/profile_impl_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/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index b055415ca0ae139c7586447f7c5a46cb889a25b5..7de91a077041ed0fa94848be3c8dea1a2b26d82a 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -175,12 +175,12 @@ void ProfileImplIOData::LazyInitializeInternal() const {
ApplyProfileParamsToContext(profile_params, media_request_context_);
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);
- media_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());
+ media_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());
media_request_context_->set_net_log(lazy_params_->io_thread->net_log());
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.h ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698