| 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());
|
|
|