Index: chrome/browser/profiles/profile_impl_io_data.cc |
=================================================================== |
--- chrome/browser/profiles/profile_impl_io_data.cc (revision 148459) |
+++ chrome/browser/profiles/profile_impl_io_data.cc (working copy) |
@@ -267,7 +267,8 @@ |
ProfileParams* profile_params) const { |
ChromeURLRequestContext* main_context = main_request_context(); |
ChromeURLRequestContext* extensions_context = extensions_request_context(); |
- media_request_context_.reset(new ChromeURLRequestContext); |
+ media_request_context_.reset(new ChromeURLRequestContext( |
+ ChromeURLRequestContext::CONTEXT_TYPE_MEDIA, cache_stats())); |
IOThread* const io_thread = profile_params->io_thread; |
IOThread::Globals* const io_thread_globals = io_thread->globals(); |
@@ -477,7 +478,7 @@ |
ProfileImplIOData::InitializeAppRequestContext( |
ChromeURLRequestContext* main_context, |
const std::string& app_id) const { |
- AppRequestContext* context = new AppRequestContext; |
+ AppRequestContext* context = new AppRequestContext(cache_stats()); |
// If this is for a guest process, we should not persist cookies and http |
// cache. |
@@ -564,6 +565,11 @@ |
return app_request_context; |
} |
+chrome_browser_net::CacheStats* ProfileImplIOData::GetCacheStats( |
+ IOThread::Globals* io_thread_globals) const { |
+ return io_thread_globals->cache_stats.get(); |
+} |
+ |
void ProfileImplIOData::CreateFtpProtocolHandler( |
net::URLRequestJobFactory* job_factory, |
net::FtpAuthCache* ftp_auth_cache) const { |