| 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 dc2c66666d9fd0b74ab66d6cfed50013645bd675..518d5fa9d89cc74b03b1ec690e5deed3d7b6ebeb 100644
|
| --- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
|
| +++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
|
| @@ -23,7 +23,7 @@
|
| #include "net/http/http_cache.h"
|
|
|
| OffTheRecordProfileIOData::Handle::Handle(Profile* profile)
|
| - : io_data_(new OffTheRecordProfileIOData),
|
| + : io_data_(new OffTheRecordProfileIOData(profile)),
|
| profile_(profile),
|
| initialized_(false) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| @@ -48,6 +48,8 @@ OffTheRecordProfileIOData::Handle::~Handle() {
|
| ++iter) {
|
| iter->second->CleanupOnUIThread();
|
| }
|
| +
|
| + io_data_->Shutdown();
|
| }
|
|
|
| scoped_refptr<ChromeURLRequestContextGetter>
|
| @@ -108,8 +110,8 @@ void OffTheRecordProfileIOData::Handle::LazyInitialize() const {
|
| OffTheRecordProfileIOData::LazyParams::LazyParams() : io_thread(NULL) {}
|
| OffTheRecordProfileIOData::LazyParams::~LazyParams() {}
|
|
|
| -OffTheRecordProfileIOData::OffTheRecordProfileIOData()
|
| - : ProfileIOData(true),
|
| +OffTheRecordProfileIOData::OffTheRecordProfileIOData(Profile* profile)
|
| + : ProfileIOData(profile, true),
|
| initialized_(false) {}
|
| OffTheRecordProfileIOData::~OffTheRecordProfileIOData() {
|
| STLDeleteValues(&app_http_factory_map_);
|
| @@ -139,6 +141,7 @@ void OffTheRecordProfileIOData::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());
|
|
|
|
|