diff options
Diffstat (limited to 'components/net/resource_thread.rs')
-rw-r--r-- | components/net/resource_thread.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/net/resource_thread.rs b/components/net/resource_thread.rs index 6e94fd1cf03..dfcbf1eedd3 100644 --- a/components/net/resource_thread.rs +++ b/components/net/resource_thread.rs @@ -13,7 +13,7 @@ use data_loader; use devtools_traits::DevtoolsControlMsg; use fetch::methods::{fetch, FetchContext}; use file_loader; -use filemanager_thread::FileManagerThreadFactory; +use filemanager_thread::{FileManagerThreadFactory, TFDProvider}; use hsts::HstsList; use http_loader::{self, HttpState}; use hyper::client::pool::Pool; @@ -49,6 +49,8 @@ use util::prefs; use util::thread::spawn_named; use websocket_loader; +const TFD_PROVIDER: &'static TFDProvider = &TFDProvider; + pub enum ProgressSender { Channel(IpcSender<ProgressMsg>), Listener(AsyncResponseTarget), @@ -161,7 +163,7 @@ pub fn new_resource_threads(user_agent: String, profiler_chan: ProfilerChan) -> ResourceThreads { ResourceThreads::new(new_core_resource_thread(user_agent, devtools_chan, profiler_chan), StorageThreadFactory::new(), - FileManagerThreadFactory::new()) + FileManagerThreadFactory::new(TFD_PROVIDER)) } |