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 7de91a077041ed0fa94848be3c8dea1a2b26d82a..3e42113dc73610c6e6fa617add490b62b5b92910 100644 |
--- a/chrome/browser/profiles/profile_impl_io_data.cc |
+++ b/chrome/browser/profiles/profile_impl_io_data.cc |
@@ -25,7 +25,7 @@ |
#include "net/http/http_cache.h" |
ProfileImplIOData::Handle::Handle(Profile* profile) |
- : io_data_(new ProfileImplIOData), |
+ : io_data_(new ProfileImplIOData(profile)), |
profile_(profile), |
initialized_(false) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
@@ -48,6 +48,8 @@ ProfileImplIOData::Handle::~Handle() { |
++iter) { |
iter->second->CleanupOnUIThread(); |
} |
+ |
+ io_data_->Shutdown(); |
} |
void ProfileImplIOData::Handle::Init(const FilePath& cookie_path, |
@@ -149,8 +151,8 @@ ProfileImplIOData::LazyParams::LazyParams() |
io_thread(NULL) {} |
ProfileImplIOData::LazyParams::~LazyParams() {} |
-ProfileImplIOData::ProfileImplIOData() |
- : ProfileIOData(false), |
+ProfileImplIOData::ProfileImplIOData(Profile* profile) |
+ : ProfileIOData(profile, false), |
clear_local_state_on_exit_(false) {} |
ProfileImplIOData::~ProfileImplIOData() { |
STLDeleteValues(&app_http_factory_map_); |
@@ -189,6 +191,7 @@ void ProfileImplIOData::LazyInitializeInternal() const { |
network_delegate_.reset(new ChromeNetworkDelegate( |
io_thread_globals->extension_event_router_forwarder.get(), |
profile_params.profile_id, |
+ enable_referrers(), |
profile_params.protocol_handler_registry)); |
main_request_context_->set_network_delegate(network_delegate_.get()); |
media_request_context_->set_network_delegate(network_delegate_.get()); |