Index: components/nacl/browser/nacl_browser.cc |
diff --git a/components/nacl/browser/nacl_browser.cc b/components/nacl/browser/nacl_browser.cc |
index 7d258128a7992fa585394271272c5923143e22f5..1a6d1408ddb85e7a31476a54d664dace8b4b8943 100644 |
--- a/components/nacl/browser/nacl_browser.cc |
+++ b/components/nacl/browser/nacl_browser.cc |
@@ -280,11 +280,11 @@ void NaClBrowser::EnsureIrtAvailable() { |
DCHECK_CURRENTLY_ON(content::BrowserThread::IO); |
if (IsOk() && irt_state_ == NaClResourceUninitialized) { |
irt_state_ = NaClResourceRequested; |
- // TODO(ncbray) use blocking pool. |
+ auto task_runner = base::CreateTaskRunnerWithTraits( |
+ {base::MayBlock , base::TaskPriority::BACKGROUND, |
+ base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN}); |
std::unique_ptr<base::FileProxy> file_proxy( |
- new base::FileProxy(content::BrowserThread::GetTaskRunnerForThread( |
- content::BrowserThread::FILE) |
- .get())); |
+ new base::FileProxy(task_runner.get())); |
base::FileProxy* proxy = file_proxy.get(); |
if (!proxy->CreateOrOpen( |
irt_filepath_, base::File::FLAG_OPEN | base::File::FLAG_READ, |