Index: content/browser/browser_context.cc |
=================================================================== |
--- content/browser/browser_context.cc (revision 152281) |
+++ content/browser/browser_context.cc (working copy) |
@@ -7,6 +7,7 @@ |
#include "content/browser/appcache/chrome_appcache_service.h" |
#include "webkit/database/database_tracker.h" |
#include "content/browser/dom_storage/dom_storage_context_impl.h" |
+#include "content/browser/download/download_file_manager.h" |
#include "content/browser/download/download_manager_impl.h" |
#include "content/browser/in_process_webkit/indexed_db_context_impl.h" |
#include "content/browser/renderer_host/resource_dispatcher_host_impl.h" |
@@ -79,8 +80,11 @@ |
if (!context->GetUserData(kDownloadManagerKeyName)) { |
ResourceDispatcherHostImpl* rdh = ResourceDispatcherHostImpl::Get(); |
DCHECK(rdh); |
+ DownloadFileManager* file_manager = rdh->download_file_manager(); |
+ DCHECK(file_manager); |
scoped_refptr<DownloadManager> download_manager = |
new DownloadManagerImpl( |
+ file_manager, |
scoped_ptr<DownloadItemFactory>(), |
GetContentClient()->browser()->GetNetLog()); |