Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Unified Diff: components/nacl/browser/nacl_browser.cc

Issue 2948893003: Convert nacl browser testrunner (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698